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

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

Open trevorwang opened this issue 10 years ago • 3 comments

Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
> class "com.microsoft.aad.adal.AuthenticationCallback"'s signer information does not match signer information of other classes in the same package

trevorwang avatar Aug 25 '16 06:08 trevorwang

@trevorwang

I don't see that task executed when I build the project from Android Studio. Also, when I try to run the task with ./gradlew :app:transformClassesWithInstantRunForDebug I get the following:

FAILURE: Build failed with an exception.

* What went wrong:
Task 'transformClassesWithInstantRunForDebug' not found in project ':app'.

* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Could you provide some repro steps?

ricalo avatar Aug 25 '16 13:08 ricalo

My Android Studio Config

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.microsoft.graph.snippets"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/maven/com.google.guava/guava/pom.properties'
        exclude 'META-INF/maven/com.google.guava/guava/pom.xml'
    }
    configurations {
        all {
            resolutionStrategy.force 'com.android.support:support-annotations:23.4.0'
        }
    }
    defaultConfig {
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

And the full log is as following. I just run the app form Android Studio

Executing tasks: [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:assembleDebug]

Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:clean
:app:buildInfoDebugLoader
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:microsoftgraphapi:preBuild UP-TO-DATE
:microsoftgraphapi:preReleaseBuild UP-TO-DATE
:microsoftgraphapi:checkReleaseManifest
:microsoftgraphapi:preReleaseUnitTestBuild UP-TO-DATE
:microsoftgraphvos:preBuild UP-TO-DATE
:microsoftgraphvos:preReleaseBuild UP-TO-DATE
:microsoftgraphvos:checkReleaseManifest
:microsoftgraphvos:prepareReleaseDependencies
:microsoftgraphvos:compileReleaseAidl UP-TO-DATE
:microsoftgraphvos:compileReleaseNdk UP-TO-DATE
:microsoftgraphvos:compileLint UP-TO-DATE
:microsoftgraphvos:copyReleaseLint UP-TO-DATE
:microsoftgraphvos:mergeReleaseShaders UP-TO-DATE
:microsoftgraphvos:compileReleaseShaders UP-TO-DATE
:microsoftgraphvos:generateReleaseAssets UP-TO-DATE
:microsoftgraphvos:mergeReleaseAssets UP-TO-DATE
:microsoftgraphvos:mergeReleaseProguardFiles UP-TO-DATE
:microsoftgraphvos:packageReleaseRenderscript UP-TO-DATE
:microsoftgraphvos:compileReleaseRenderscript UP-TO-DATE
:microsoftgraphvos:generateReleaseResValues UP-TO-DATE
:microsoftgraphvos:generateReleaseResources UP-TO-DATE
:microsoftgraphvos:packageReleaseResources UP-TO-DATE
:microsoftgraphvos:processReleaseManifest UP-TO-DATE
:microsoftgraphvos:generateReleaseBuildConfig UP-TO-DATE
:microsoftgraphvos:processReleaseResources UP-TO-DATE
:microsoftgraphvos:generateReleaseSources UP-TO-DATE
:microsoftgraphvos:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:microsoftgraphvos:compileReleaseJavaWithJavac UP-TO-DATE
:microsoftgraphvos:processReleaseJavaRes UP-TO-DATE
:microsoftgraphvos:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:microsoftgraphvos:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:microsoftgraphvos:mergeReleaseJniLibFolders UP-TO-DATE
:microsoftgraphvos:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:microsoftgraphvos:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:microsoftgraphvos:bundleRelease UP-TO-DATE
:microsoftgraphapi:prepareAndroidJavaSnippetsRestSampleMasterMicrosoftgraphvosUnspecifiedLibrary UP-TO-DATE
:microsoftgraphapi:prepareReleaseDependencies
:microsoftgraphapi:compileReleaseAidl UP-TO-DATE
:microsoftgraphapi:compileReleaseNdk UP-TO-DATE
:microsoftgraphapi:compileLint UP-TO-DATE
:microsoftgraphapi:copyReleaseLint UP-TO-DATE
:microsoftgraphapi:mergeReleaseShaders UP-TO-DATE
:microsoftgraphapi:compileReleaseShaders UP-TO-DATE
:microsoftgraphapi:generateReleaseAssets UP-TO-DATE
:microsoftgraphapi:mergeReleaseAssets UP-TO-DATE
:microsoftgraphapi:mergeReleaseProguardFiles UP-TO-DATE
:microsoftgraphapi:packageReleaseRenderscript UP-TO-DATE
:microsoftgraphapi:compileReleaseRenderscript UP-TO-DATE
:microsoftgraphapi:generateReleaseResValues UP-TO-DATE
:microsoftgraphapi:generateReleaseResources UP-TO-DATE
:microsoftgraphapi:packageReleaseResources UP-TO-DATE
:microsoftgraphapi:processReleaseManifest UP-TO-DATE
:microsoftgraphapi:generateReleaseBuildConfig UP-TO-DATE
:microsoftgraphapi:mergeReleaseResources UP-TO-DATE
:microsoftgraphapi:processReleaseResources UP-TO-DATE
:microsoftgraphapi:generateReleaseSources UP-TO-DATE
:microsoftgraphapi:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:microsoftgraphapi:compileReleaseJavaWithJavac UP-TO-DATE
:microsoftgraphapi:processReleaseJavaRes UP-TO-DATE
:microsoftgraphapi:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:microsoftgraphapi:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:microsoftgraphapi:mergeReleaseJniLibFolders UP-TO-DATE
:microsoftgraphapi:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:microsoftgraphapi:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:microsoftgraphapi:bundleRelease UP-TO-DATE
:o365-auth:preBuild UP-TO-DATE
:o365-auth:preReleaseBuild UP-TO-DATE
:o365-auth:checkReleaseManifest
:o365-auth:preReleaseUnitTestBuild UP-TO-DATE
:o365-auth:prepareComAndroidSupportAnimatedVectorDrawable2420Library UP-TO-DATE
:o365-auth:prepareComAndroidSupportAppcompatV72420Library UP-TO-DATE
:o365-auth:prepareComAndroidSupportSupportCompat2420Library UP-TO-DATE
:o365-auth:prepareComAndroidSupportSupportCoreUi2420Library UP-TO-DATE
:o365-auth:prepareComAndroidSupportSupportCoreUtils2420Library UP-TO-DATE
:o365-auth:prepareComAndroidSupportSupportFragment2420Library UP-TO-DATE
:o365-auth:prepareComAndroidSupportSupportMediaCompat2420Library UP-TO-DATE
:o365-auth:prepareComAndroidSupportSupportV42420Library UP-TO-DATE
:o365-auth:prepareComAndroidSupportSupportVectorDrawable2420Library UP-TO-DATE
:o365-auth:prepareComMicrosoftAadAdal1113Library UP-TO-DATE
:o365-auth:prepareReleaseDependencies
:o365-auth:compileReleaseAidl UP-TO-DATE
:o365-auth:compileReleaseNdk UP-TO-DATE
:o365-auth:compileLint UP-TO-DATE
:o365-auth:copyReleaseLint UP-TO-DATE
:o365-auth:compileReleaseRenderscript UP-TO-DATE
:o365-auth:generateReleaseBuildConfig UP-TO-DATE
:o365-auth:generateReleaseResValues UP-TO-DATE
:o365-auth:generateReleaseResources UP-TO-DATE
:o365-auth:mergeReleaseResources UP-TO-DATE
:o365-auth:processReleaseManifest UP-TO-DATE
:o365-auth:processReleaseResources UP-TO-DATE
:o365-auth:generateReleaseSources UP-TO-DATE
:o365-auth:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:o365-auth:compileReleaseJavaWithJavac UP-TO-DATE
:o365-auth:extractReleaseAnnotations UP-TO-DATE
:o365-auth:mergeReleaseShaders UP-TO-DATE
:o365-auth:compileReleaseShaders UP-TO-DATE
:o365-auth:generateReleaseAssets UP-TO-DATE
:o365-auth:mergeReleaseAssets UP-TO-DATE
:o365-auth:mergeReleaseProguardFiles UP-TO-DATE
:o365-auth:packageReleaseRenderscript UP-TO-DATE
:o365-auth:packageReleaseResources UP-TO-DATE
:o365-auth:processReleaseJavaRes UP-TO-DATE
:o365-auth:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:o365-auth:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:o365-auth:mergeReleaseJniLibFolders UP-TO-DATE
:o365-auth:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:o365-auth:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:o365-auth:bundleRelease UP-TO-DATE
:app:prepareAndroidJavaSnippetsRestSampleMasterMicrosoftgraphapiUnspecifiedLibrary
:app:prepareAndroidJavaSnippetsRestSampleMasterMicrosoftgraphvosUnspecifiedLibrary
:app:prepareAndroidJavaSnippetsRestSampleMasterO365AuthUnspecifiedLibrary
:app:prepareComAndroidSupportAnimatedVectorDrawable2420Library
:app:prepareComAndroidSupportAppcompatV72420Library
:app:prepareComAndroidSupportSupportCompat2420Library
:app:prepareComAndroidSupportSupportCoreUi2420Library
:app:prepareComAndroidSupportSupportCoreUtils2420Library
:app:prepareComAndroidSupportSupportFragment2420Library
:app:prepareComAndroidSupportSupportMediaCompat2420Library
:app:prepareComAndroidSupportSupportV42420Library
:app:prepareComAndroidSupportSupportVectorDrawable2420Library
:app:prepareComJakewhartonTimberTimber412Library
:app:prepareComMicrosoftAadAdal1113Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareDebugAndroidTestDependencies
:app:compileDebugAndroidTestAidl
:app:processDebugAndroidTestManifest
:app:compileDebugAndroidTestRenderscript
:app:generateDebugAndroidTestBuildConfig
:app:generateDebugAndroidTestResValues
:app:generateDebugAndroidTestResources
:app:mergeDebugAndroidTestResources
:app:processDebugAndroidTestResources
:app:generateDebugAndroidTestSources
:app:mockableAndroidJar UP-TO-DATE
:app:preDebugUnitTestBuild UP-TO-DATE
:app:prepareDebugUnitTestDependencies
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

Note: D:\Workspace\android-java-snippets-rest-sample-master\app\src\main\java\com\microsoft\office365\msgraphsnippetapp\SnippetDetailFragment.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\Workspace\android-java-snippets-rest-sample-master\app\src\main\java\com\microsoft\office365\msgraphsnippetapp\SnippetDetailFragment.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug
:app:packageInstantRunResourcesDebug
:app:fastDeployDebugExtractor
:app:generateDebugInstantRunAppInfo
:app:transformClassesWithExtractJarsForDebug
:app:transformClassesWithInstantRunVerifierForDebug
:app:transformClassesWithJavaResourcesVerifierForDebug UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:mergeDebugJniLibFolders
:app:transformNative_libsWithMergeJniLibsForDebug
:app:transformResourcesAndNative_libsWithJavaResourcesVerifierForDebug UP-TO-DATE
:app:transformClassesWithInstantRunForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
> class "com.microsoft.aad.adal.AuthenticationCallback"'s signer information does not match signer information of other classes in the same package

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

trevorwang avatar Aug 26 '16 01:08 trevorwang

@trevorwang by looking at the applicationId in your configuration files I think this issue doesn't belong to this repo. I opened an issue on the repo that I think is the right one microsoftgraph/android-java-snippets-sample#5.

If this is correct, let's continue over there.

Let me know

ricalo avatar Aug 26 '16 18:08 ricalo