android-java-snippets-sample icon indicating copy to clipboard operation
android-java-snippets-sample copied to clipboard

signer information does not match signer information of other classes in the same package

Open ricalo opened this issue 10 years ago • 9 comments

@trevorwang, if this is the right repo, let's work on this issue instead of microsoftgraph/android-java-snippets-rest-sample#30

ricalo avatar Aug 26 '16 17:08 ricalo

I can't repro on this project either. Gradle just says that such task doesn't exist. I'd like to take Android Studio out of the equation. What happens if you run (from a command line)?

./gradlew clean build

ricalo avatar Aug 26 '16 18:08 ricalo

@Ricalo

It works well from the command line

trevorwang avatar Aug 29 '16 06:08 trevorwang

Seems like a problem with Instant Run in your Android Studio installation. You can try disabling it for the project:

  1. Go to File > Settings > Build, Execution, Deployment > Debugger > Instant Run
  2. Uncheck Enable Instant Run to hot swap code...
  3. Click Apply, Clean your project and try again.

You can also try to update your Android Studio installation. Let me know if this works.

ricalo avatar Aug 29 '16 17:08 ricalo

It didn't work with studio 2.2 beta version but works well with studio 2.1. Seems that android studio 2.2 beta has some issues. Thanks very much for you quick response. @Ricalo

trevorwang avatar Sep 05 '16 09:09 trevorwang

I just updated to the stable version of Android Studio 2.2 and ran into this issue. Since this is the stable version, I'm reopening this bug. However, seems to be out of the control of this repo and more related to AzureAD/azure-activedirectory-library-for-android#720.

I'll keep this open to keep track of the referenced issue.

Thanks @trevorwang and @JohnAustin-MSFT

Update: The workaround, for now, is to ignore the dialog prompting you to update Gradle. Choose Remind me later or Don't remind me again for this project in the following dialog.

To take advantage of all the latest features (such as Instant Run), improvements and security fixes, we strongly recommend that you update the Android Gradle plugin to version 2.2.0 and Gradle to version 2.14.1.

ricalo avatar Sep 20 '16 18:09 ricalo

You have 2 options now: if you want to use Instant Run, use Android Studio 2.1. If you don't need Instant Run use Android Studio 2.2 and keep gradle at v2.1.3.

headsvk avatar Sep 21 '16 14:09 headsvk

There has to be some solution though, instant run is must have now a days

gauravgaikwad777 avatar Sep 22 '16 18:09 gauravgaikwad777

Sorry for the late response, @gauravgaikwad777. I was on vacation. Yes, there should be a solution, but it looks like it's on the ADAL team's side. Make sure to leave a comment in issue AzureAD/azure-activedirectory-library-for-android#720 to get their attention.

I'll close this issue for now, but will reopen in case there's an action item on this project.

ricalo avatar Oct 03 '16 17:10 ricalo

Seems like a problem with Instant Run in your Android Studio installation. You can try disabling it for the project:

  1. Go to File > Settings > Build, Execution, Deployment > Debugger > Instant Run
  2. Uncheck Enable Instant Run to hot swap code...
  3. Click Apply, Clean your project and try again.

You can also try to update your Android Studio installation. Let me know if this works.

Worked for me. Thank you so much

taraqr9 avatar May 01 '19 18:05 taraqr9