Can someone please tell my why this does nothing? I've messed with it for two days. The text is never printed, copyAAR is never run. Should be so simple but obviously I'm missing something. This is a project with a main "app" and one module called "MY_Library". This code is in the build.gradle file for My_Library. THANKS!
task copyAAR(dependsOn:'assembleDebug') << {
println "++++++ AAR COPIED ++++++: "
}
Also tried:
afterEvaluate {
copyAAR.dependsOn ':MY_Library:assembleDebug'
}
task copyAAR() << {
println "++++++ AAR COPIED ++++++: "
}
Executing tasks: [:MY_Library:assembleDebug]
Parallel execution with configuration on demand is an incubating feature.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_bxaa81mwx93hvs7njvdit9vtz$_run_closure1.doCall(C:\zzz\zzz\zzz\zzz\MY_Library\build.gradle:19)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
:MY_Library:preBuild UP-TO-DATE
:MY_Library:preDebugBuild UP-TO-DATE
:MY_Library:compileDebugAidl UP-TO-DATE
:MY_Library:compileDebugRenderscript UP-TO-DATE
:MY_Library:checkDebugManifest UP-TO-DATE
:MY_Library:generateDebugBuildConfig UP-TO-DATE
:MY_Library:generateDebugResValues UP-TO-DATE
:MY_Library:generateDebugResources UP-TO-DATE
:MY_Library:packageDebugResources UP-TO-DATE
:MY_Library:platformAttrExtractor UP-TO-DATE
:MY_Library:processDebugManifest UP-TO-DATE
:MY_Library:generateDebugRFile UP-TO-DATE
:MY_Library:prepareLintJar UP-TO-DATE
:MY_Library:generateDebugSources UP-TO-DATE
:MY_Library:javaPreCompileDebug UP-TO-DATE
:MY_Library:compileDebugJavaWithJavac UP-TO-DATE
:MY_Library:extractDebugAnnotations UP-TO-DATE
:MY_Library:mergeDebugConsumerProguardFiles UP-TO-DATE
:MY_Library:mergeDebugShaders UP-TO-DATE
:MY_Library:compileDebugShaders UP-TO-DATE
:MY_Library:generateDebugAssets UP-TO-DATE
:MY_Library:packageDebugAssets UP-TO-DATE
:MY_Library:packageDebugRenderscript NO-SOURCE
:MY_Library:processDebugJavaRes NO-SOURCE
:MY_Library:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:MY_Library:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:MY_Library:compileDebugNdk NO-SOURCE
:MY_Library:mergeDebugJniLibFolders UP-TO-DATE
:MY_Library:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:MY_Library:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
:MY_Library:bundleDebug UP-TO-DATE
:MY_Library:compileDebugSources UP-TO-DATE
:MY_Library:assembleDebug UP-TO-DATE
BUILD SUCCESSFUL in 0s
23 actionable tasks: 23 up-to-date
Well, the only way I got it to work was:
afterEvaluate {
assembleDebug.finalizedBy(copyAAR)
}
Why did the other way not work?!?!?
Related
I am trying to add file download functionality to my application using the ion library and I am getting the below mentioned exception during gradle build.
Dependency : compile 'com.koushikdutta.ion:ion:2.1.7'
Error Message:
Error:Execution failed for task ':OsmAnd:transformClassesWithDexForFullLegacyX86Debug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-oracle/bin/java'' finished with non-zero exit value 2
Complete Gradle Console Output:
Information:Gradle tasks [:OsmAnd:assembleFullLegacyArmv7Debug]
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
:OsmAnd:buildOsmAndCore
ANDROID_HOME is not set, trying ANDROID_SDK:
ANDROID_SDK is also not set
:OsmAnd:cleanupDuplicatesInCore
:OsmAnd:collectFonts UP-TO-DATE
:OsmAnd:collectHelpContentsAssets UP-TO-DATE
:OsmAnd:collectMiscResources UP-TO-DATE
:OsmAnd:collectRegionsInfoResources UP-TO-DATE
:OsmAnd:collectRenderingStylesResources UP-TO-DATE
:OsmAnd:collectRoutingResources UP-TO-DATE
:OsmAnd:collectVoiceAssets UP-TO-DATE
:OsmAnd:copyStyleIcons UP-TO-DATE
:OsmAnd:updateNoTranslate
:OsmAnd:collectExternalResources
:OsmAnd:preBuild UP-TO-DATE
:OsmAnd:preFullLegacyArmv7DebugBuild UP-TO-DATE
:OsmAnd:checkFullLegacyArmv7DebugManifest
:OsmAnd:preFreeLegacyArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeLegacyArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeLegacyFatDebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyFatReleaseBuild UP-TO-DATE
:OsmAnd:preFreeLegacyMipsDebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFreeLegacyX86DebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreFatDebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreFatReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreMipsDebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreX86DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugFatDebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugFatReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugMipsDebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugX86DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFullLegacyArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyFatDebugBuild UP-TO-DATE
:OsmAnd:preFullLegacyFatReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyMipsDebugBuild UP-TO-DATE
:OsmAnd:preFullLegacyMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyX86DebugBuild UP-TO-DATE
:OsmAnd:preFullLegacyX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreFatDebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreFatReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreMipsDebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreX86DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugFatDebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugFatReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugMipsDebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugX86DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugX86ReleaseBuild UP-TO-DATE
:OsmAnd-java:compileJava UP-TO-DATE
:OsmAnd-java:processResources UP-TO-DATE
:OsmAnd-java:classes UP-TO-DATE
:OsmAnd-java:androidJar UP-TO-DATE
:eclipse-compile:appcompat:preBuild UP-TO-DATE
:eclipse-compile:appcompat:preReleaseBuild UP-TO-DATE
:eclipse-compile:appcompat:compileReleaseNdk UP-TO-DATE
:eclipse-compile:appcompat:compileLint
:eclipse-compile:appcompat:copyReleaseLint UP-TO-DATE
:eclipse-compile:appcompat:mergeReleaseProguardFiles UP-TO-DATE
:eclipse-compile:appcompat:packageReleaseRenderscript UP-TO-DATE
:eclipse-compile:appcompat:checkReleaseManifest
:eclipse-compile:appcompat:prepareReleaseDependencies
:eclipse-compile:appcompat:compileReleaseRenderscript UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseResValues UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseResources UP-TO-DATE
:eclipse-compile:appcompat:packageReleaseResources UP-TO-DATE
:eclipse-compile:appcompat:compileReleaseAidl UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseBuildConfig UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseAssets UP-TO-DATE
:eclipse-compile:appcompat:mergeReleaseAssets UP-TO-DATE
:eclipse-compile:appcompat:processReleaseManifest UP-TO-DATE
:eclipse-compile:appcompat:processReleaseResources UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseSources UP-TO-DATE
:eclipse-compile:appcompat:compileReleaseJavaWithJavac UP-TO-DATE
:eclipse-compile:appcompat:processReleaseJavaRes UP-TO-DATE
:eclipse-compile:appcompat:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:eclipse-compile:appcompat:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:eclipse-compile:appcompat:mergeReleaseJniLibFolders UP-TO-DATE
:eclipse-compile:appcompat:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:eclipse-compile:appcompat:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:eclipse-compile:appcompat:bundleRelease UP-TO-DATE
:eclipse-compile:cardview:preBuild UP-TO-DATE
:eclipse-compile:cardview:preReleaseBuild UP-TO-DATE
:eclipse-compile:cardview:compileReleaseNdk UP-TO-DATE
:eclipse-compile:cardview:compileLint
:eclipse-compile:cardview:copyReleaseLint UP-TO-DATE
:eclipse-compile:cardview:mergeReleaseProguardFiles UP-TO-DATE
:eclipse-compile:cardview:packageReleaseRenderscript UP-TO-DATE
:eclipse-compile:cardview:checkReleaseManifest
:eclipse-compile:cardview:prepareReleaseDependencies
:eclipse-compile:cardview:compileReleaseRenderscript UP-TO-DATE
:eclipse-compile:cardview:generateReleaseResValues UP-TO-DATE
:eclipse-compile:cardview:generateReleaseResources UP-TO-DATE
:eclipse-compile:cardview:packageReleaseResources UP-TO-DATE
:eclipse-compile:cardview:compileReleaseAidl UP-TO-DATE
:eclipse-compile:cardview:generateReleaseBuildConfig UP-TO-DATE
:eclipse-compile:cardview:generateReleaseAssets UP-TO-DATE
:eclipse-compile:cardview:mergeReleaseAssets UP-TO-DATE
:eclipse-compile:cardview:processReleaseManifest UP-TO-DATE
:eclipse-compile:cardview:processReleaseResources UP-TO-DATE
:eclipse-compile:cardview:generateReleaseSources UP-TO-DATE
:eclipse-compile:cardview:compileReleaseJavaWithJavac UP-TO-DATE
:eclipse-compile:cardview:processReleaseJavaRes UP-TO-DATE
:eclipse-compile:cardview:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:eclipse-compile:cardview:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:eclipse-compile:cardview:mergeReleaseJniLibFolders UP-TO-DATE
:eclipse-compile:cardview:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:eclipse-compile:cardview:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:eclipse-compile:cardview:bundleRelease UP-TO-DATE
:eclipse-compile:design:preBuild UP-TO-DATE
:eclipse-compile:design:preReleaseBuild UP-TO-DATE
:eclipse-compile:design:compileReleaseNdk UP-TO-DATE
:eclipse-compile:design:compileLint
:eclipse-compile:design:copyReleaseLint UP-TO-DATE
:eclipse-compile:design:mergeReleaseProguardFiles UP-TO-DATE
:eclipse-compile:design:packageReleaseRenderscript UP-TO-DATE
:eclipse-compile:design:checkReleaseManifest
:eclipse-compile:design:preDebugAndroidTestBuild UP-TO-DATE
:eclipse-compile:design:preDebugBuild UP-TO-DATE
:eclipse-compile:design:preDebugUnitTestBuild UP-TO-DATE
:eclipse-compile:design:preReleaseUnitTestBuild UP-TO-DATE
:eclipse-compile:design:prepareAndroidEclipseCompileAppcompatUnspecifiedLibrary UP-TO-DATE
:eclipse-compile:design:prepareReleaseDependencies
:eclipse-compile:design:compileReleaseRenderscript UP-TO-DATE
:eclipse-compile:design:generateReleaseResValues UP-TO-DATE
:eclipse-compile:design:generateReleaseResources UP-TO-DATE
:eclipse-compile:design:packageReleaseResources UP-TO-DATE
:eclipse-compile:design:compileReleaseAidl UP-TO-DATE
:eclipse-compile:design:generateReleaseBuildConfig UP-TO-DATE
:eclipse-compile:design:generateReleaseAssets UP-TO-DATE
:eclipse-compile:design:mergeReleaseAssets UP-TO-DATE
:eclipse-compile:design:mergeReleaseResources UP-TO-DATE
:eclipse-compile:design:processReleaseManifest UP-TO-DATE
:eclipse-compile:design:processReleaseResources UP-TO-DATE
:eclipse-compile:design:generateReleaseSources UP-TO-DATE
:eclipse-compile:design:compileReleaseJavaWithJavac UP-TO-DATE
:eclipse-compile:design:processReleaseJavaRes UP-TO-DATE
:eclipse-compile:design:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:eclipse-compile:design:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:eclipse-compile:design:mergeReleaseJniLibFolders UP-TO-DATE
:eclipse-compile:design:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:eclipse-compile:design:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:eclipse-compile:design:bundleRelease UP-TO-DATE
:OsmAnd:prepareAndroidEclipseCompileAppcompatUnspecifiedLibrary UP-TO-DATE
:OsmAnd:prepareAndroidEclipseCompileCardviewUnspecifiedLibrary UP-TO-DATE
:OsmAnd:prepareAndroidEclipseCompileDesignUnspecifiedLibrary UP-TO-DATE
:OsmAnd:prepareComGithubClansFab162Library UP-TO-DATE
:OsmAnd:prepareComKoushikduttaAsyncAndroidasync217Library UP-TO-DATE
:OsmAnd:prepareComKoushikduttaIonIon217Library UP-TO-DATE
:OsmAnd:prepareFullLegacyArmv7DebugDependencies
:OsmAnd:compileFullLegacyArmv7DebugAidl UP-TO-DATE
:OsmAnd:compileFullLegacyArmv7DebugRenderscript UP-TO-DATE
:OsmAnd:generateFullLegacyArmv7DebugBuildConfig UP-TO-DATE
:OsmAnd:generateFullLegacyArmv7DebugAssets UP-TO-DATE
:OsmAnd:mergeFullLegacyArmv7DebugAssets UP-TO-DATE
:OsmAnd:generateFullLegacyArmv7DebugResValues UP-TO-DATE
:OsmAnd:generateFullLegacyArmv7DebugResources UP-TO-DATE
:OsmAnd:mergeFullLegacyArmv7DebugResources UP-TO-DATE
:OsmAnd:processFullLegacyArmv7DebugManifest UP-TO-DATE
:OsmAnd:processFullLegacyArmv7DebugResources UP-TO-DATE
:OsmAnd:generateFullLegacyArmv7DebugSources UP-TO-DATE
:OsmAnd:compileFullLegacyArmv7DebugJavaWithJavac UP-TO-DATE
:OsmAnd:compileFullLegacyArmv7DebugNdk UP-TO-DATE
:OsmAnd:compileFullLegacyArmv7DebugSources UP-TO-DATE
:OsmAnd:transformClassesWithDexForFullLegacyArmv7Debug
Warning:Ignoring InnerClasses attribute for an anonymous inner class
(bsh.Interpreter$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
Warning:Ignoring InnerClasses attribute for an anonymous inner class
(bsh.CollectionManager$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
Warning:Ignoring InnerClasses attribute for an anonymous inner class
(bsh.SimpleNode$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Execution failed for task ':OsmAnd:transformClassesWithDexForFullLegacyArmv7Debug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-oracle/bin/java'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 1 mins 28.138 secs
Information:1 error
Information:3 warnings
Information:See complete output in console
Please help
Update:
Error Message after building bean shell from sources.
Information:Gradle tasks [:OsmAnd:assembleFullLegacyX86Debug]
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
WARNING [Project: :OsmAnd] 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.
:OsmAnd:buildOsmAndCore
ANDROID_HOME is not set, trying ANDROID_SDK:
ANDROID_SDK is also not set
:OsmAnd:cleanupDuplicatesInCore
:OsmAnd:collectFonts UP-TO-DATE
:OsmAnd:collectHelpContentsAssets UP-TO-DATE
:OsmAnd:collectMiscResources UP-TO-DATE
:OsmAnd:collectRegionsInfoResources UP-TO-DATE
:OsmAnd:collectRenderingStylesResources UP-TO-DATE
:OsmAnd:collectRoutingResources UP-TO-DATE
:OsmAnd:collectVoiceAssets UP-TO-DATE
:OsmAnd:copyStyleIcons UP-TO-DATE
:OsmAnd:updateNoTranslate
:OsmAnd:collectExternalResources
:OsmAnd:preBuild UP-TO-DATE
:OsmAnd:preFullLegacyX86DebugBuild UP-TO-DATE
:OsmAnd:checkFullLegacyX86DebugManifest
:OsmAnd:preFreeLegacyArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeLegacyArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeLegacyFatDebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyFatReleaseBuild UP-TO-DATE
:OsmAnd:preFreeLegacyMipsDebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFreeLegacyX86DebugBuild UP-TO-DATE
:OsmAnd:preFreeLegacyX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreFatDebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreFatReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreMipsDebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreX86DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoreX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugFatDebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugFatReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugMipsDebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugX86DebugBuild UP-TO-DATE
:OsmAnd:preFreeQtcoredebugX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFullLegacyArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFullLegacyArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyFatDebugBuild UP-TO-DATE
:OsmAnd:preFullLegacyFatReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyMipsDebugBuild UP-TO-DATE
:OsmAnd:preFullLegacyMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFullLegacyX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreFatDebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreFatReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreMipsDebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoreX86DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoreX86ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugArmv5DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugArmv5ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugArmv7DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugArmv7ReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugFatDebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugFatReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugMipsDebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugMipsReleaseBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugX86DebugBuild UP-TO-DATE
:OsmAnd:preFullQtcoredebugX86ReleaseBuild UP-TO-DATE
:OsmAnd-java:compileJava UP-TO-DATE
:OsmAnd-java:processResources UP-TO-DATE
:OsmAnd-java:classes UP-TO-DATE
:OsmAnd-java:androidJar UP-TO-DATE
:eclipse-compile:appcompat:preBuild UP-TO-DATE
:eclipse-compile:appcompat:preReleaseBuild UP-TO-DATE
:eclipse-compile:appcompat:compileReleaseNdk UP-TO-DATE
:eclipse-compile:appcompat:compileLint
:eclipse-compile:appcompat:copyReleaseLint UP-TO-DATE
:eclipse-compile:appcompat:mergeReleaseProguardFiles UP-TO-DATE
:eclipse-compile:appcompat:packageReleaseRenderscript UP-TO-DATE
:eclipse-compile:appcompat:checkReleaseManifest
:eclipse-compile:appcompat:prepareReleaseDependencies
:eclipse-compile:appcompat:compileReleaseRenderscript UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseResValues UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseResources UP-TO-DATE
:eclipse-compile:appcompat:packageReleaseResources UP-TO-DATE
:eclipse-compile:appcompat:compileReleaseAidl UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseBuildConfig UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseAssets UP-TO-DATE
:eclipse-compile:appcompat:mergeReleaseAssets UP-TO-DATE
:eclipse-compile:appcompat:processReleaseManifest UP-TO-DATE
:eclipse-compile:appcompat:processReleaseResources UP-TO-DATE
:eclipse-compile:appcompat:generateReleaseSources UP-TO-DATE
:eclipse-compile:appcompat:compileReleaseJavaWithJavac UP-TO-DATE
:eclipse-compile:appcompat:processReleaseJavaRes UP-TO-DATE
:eclipse-compile:appcompat:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:eclipse-compile:appcompat:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:eclipse-compile:appcompat:mergeReleaseJniLibFolders UP-TO-DATE
:eclipse-compile:appcompat:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:eclipse-compile:appcompat:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:eclipse-compile:appcompat:bundleRelease UP-TO-DATE
:eclipse-compile:cardview:preBuild UP-TO-DATE
:eclipse-compile:cardview:preReleaseBuild UP-TO-DATE
:eclipse-compile:cardview:compileReleaseNdk UP-TO-DATE
:eclipse-compile:cardview:compileLint
:eclipse-compile:cardview:copyReleaseLint UP-TO-DATE
:eclipse-compile:cardview:mergeReleaseProguardFiles UP-TO-DATE
:eclipse-compile:cardview:packageReleaseRenderscript UP-TO-DATE
:eclipse-compile:cardview:checkReleaseManifest
:eclipse-compile:cardview:prepareReleaseDependencies
:eclipse-compile:cardview:compileReleaseRenderscript UP-TO-DATE
:eclipse-compile:cardview:generateReleaseResValues UP-TO-DATE
:eclipse-compile:cardview:generateReleaseResources UP-TO-DATE
:eclipse-compile:cardview:packageReleaseResources UP-TO-DATE
:eclipse-compile:cardview:compileReleaseAidl UP-TO-DATE
:eclipse-compile:cardview:generateReleaseBuildConfig UP-TO-DATE
:eclipse-compile:cardview:generateReleaseAssets UP-TO-DATE
:eclipse-compile:cardview:mergeReleaseAssets UP-TO-DATE
:eclipse-compile:cardview:processReleaseManifest UP-TO-DATE
:eclipse-compile:cardview:processReleaseResources UP-TO-DATE
:eclipse-compile:cardview:generateReleaseSources UP-TO-DATE
:eclipse-compile:cardview:compileReleaseJavaWithJavac UP-TO-DATE
:eclipse-compile:cardview:processReleaseJavaRes UP-TO-DATE
:eclipse-compile:cardview:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:eclipse-compile:cardview:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:eclipse-compile:cardview:mergeReleaseJniLibFolders UP-TO-DATE
:eclipse-compile:cardview:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:eclipse-compile:cardview:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:eclipse-compile:cardview:bundleRelease UP-TO-DATE
:eclipse-compile:design:preBuild UP-TO-DATE
:eclipse-compile:design:preReleaseBuild UP-TO-DATE
:eclipse-compile:design:compileReleaseNdk UP-TO-DATE
:eclipse-compile:design:compileLint
:eclipse-compile:design:copyReleaseLint UP-TO-DATE
:eclipse-compile:design:mergeReleaseProguardFiles UP-TO-DATE
:eclipse-compile:design:packageReleaseRenderscript UP-TO-DATE
:eclipse-compile:design:checkReleaseManifest
:eclipse-compile:design:preDebugAndroidTestBuild UP-TO-DATE
:eclipse-compile:design:preDebugBuild UP-TO-DATE
:eclipse-compile:design:preDebugUnitTestBuild UP-TO-DATE
:eclipse-compile:design:preReleaseUnitTestBuild UP-TO-DATE
:eclipse-compile:design:prepareAndroidEclipseCompileAppcompatUnspecifiedLibrary UP-TO-DATE
:eclipse-compile:design:prepareReleaseDependencies
:eclipse-compile:design:compileReleaseRenderscript UP-TO-DATE
:eclipse-compile:design:generateReleaseResValues UP-TO-DATE
:eclipse-compile:design:generateReleaseResources UP-TO-DATE
:eclipse-compile:design:packageReleaseResources UP-TO-DATE
:eclipse-compile:design:compileReleaseAidl UP-TO-DATE
:eclipse-compile:design:generateReleaseBuildConfig UP-TO-DATE
:eclipse-compile:design:generateReleaseAssets UP-TO-DATE
:eclipse-compile:design:mergeReleaseAssets UP-TO-DATE
:eclipse-compile:design:mergeReleaseResources UP-TO-DATE
:eclipse-compile:design:processReleaseManifest UP-TO-DATE
:eclipse-compile:design:processReleaseResources UP-TO-DATE
:eclipse-compile:design:generateReleaseSources UP-TO-DATE
:eclipse-compile:design:compileReleaseJavaWithJavac UP-TO-DATE
:eclipse-compile:design:processReleaseJavaRes UP-TO-DATE
:eclipse-compile:design:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:eclipse-compile:design:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:eclipse-compile:design:mergeReleaseJniLibFolders UP-TO-DATE
:eclipse-compile:design:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:eclipse-compile:design:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:eclipse-compile:design:bundleRelease UP-TO-DATE
:OsmAnd:prepareAndroidEclipseCompileAppcompatUnspecifiedLibrary UP-TO-DATE
:OsmAnd:prepareAndroidEclipseCompileCardviewUnspecifiedLibrary UP-TO-DATE
:OsmAnd:prepareAndroidEclipseCompileDesignUnspecifiedLibrary UP-TO-DATE
:OsmAnd:prepareComGithubClansFab162Library UP-TO-DATE
:OsmAnd:prepareComKoushikduttaAsyncAndroidasync217Library UP-TO-DATE
:OsmAnd:prepareComKoushikduttaIonIon217Library UP-TO-DATE
:OsmAnd:prepareFullLegacyX86DebugDependencies
:OsmAnd:compileFullLegacyX86DebugAidl UP-TO-DATE
:OsmAnd:compileFullLegacyX86DebugRenderscript UP-TO-DATE
:OsmAnd:generateFullLegacyX86DebugBuildConfig UP-TO-DATE
:OsmAnd:generateFullLegacyX86DebugAssets UP-TO-DATE
:OsmAnd:mergeFullLegacyX86DebugAssets UP-TO-DATE
:OsmAnd:generateFullLegacyX86DebugResValues UP-TO-DATE
:OsmAnd:generateFullLegacyX86DebugResources UP-TO-DATE
:OsmAnd:mergeFullLegacyX86DebugResources
:OsmAnd:processFullLegacyX86DebugManifest UP-TO-DATE
:OsmAnd:processFullLegacyX86DebugResources
:OsmAnd:generateFullLegacyX86DebugSources
:OsmAnd:compileFullLegacyX86DebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:OsmAnd:compileFullLegacyX86DebugNdk UP-TO-DATE
:OsmAnd:compileFullLegacyX86DebugSources
:OsmAnd:transformClassesWithDexForFullLegacyX86Debug
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Execution failed for task ':OsmAnd:transformClassesWithDexForFullLegacyX86Debug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-oracle/bin/java'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 2 mins 10.071 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
I use the android studio import lib, appeared the following error,IOS_Dialog_Library is ProjectName,Messages Gradle Build:
Information:Gradle tasks [:IOS_Dialog_Library:generateDebugSources,
:IOS_Dialog_Library:generateDebugAndroidTestSources,
:app:generateDebugSources, :app:generateDebugAndroidTestSources]
:IOS_Dialog_Library:preBuild UP-TO-DATE
:IOS_Dialog_Library:preDebugBuild UP-TO-DATE
:IOS_Dialog_Library:checkDebugManifest
:IOS_Dialog_Library:prepareDebugDependencies
:IOS_Dialog_Library:compileDebugAidl UP-TO-DATE
:IOS_Dialog_Library:compileDebugRenderscript UP-TO-DATE
:IOS_Dialog_Library:generateDebugBuildConfig UP-TO-DATE
:IOS_Dialog_Library:generateDebugAssets UP-TO-DATE
:IOS_Dialog_Library:mergeDebugAssets UP-TO-DATE
:IOS_Dialog_Library:generateDebugResValues UP-TO-DATE
:IOS_Dialog_Library:generateDebugResources UP-TO-DATE
:IOS_Dialog_Library:packageDebugResources UP-TO-DATE
:IOS_Dialog_Library:processDebugManifest UP-TO-DATE
:IOS_Dialog_Library:processDebugResources UP-TO-DATE
:IOS_Dialog_Library:generateDebugSources UP-TO-DATE
:IOS_Dialog_Library:preDebugAndroidTestBuild UP-TO-DATE
:IOS_Dialog_Library:prepareDebugAndroidTestDependencies
:IOS_Dialog_Library:compileDebugAndroidTestAidl UP-TO-DATE
:IOS_Dialog_Library:compileDebugNdk UP-TO-DATE
:IOS_Dialog_Library:compileLint :IOS_Dialog_Library:copyDebugLint
UP-TO-DATE :IOS_Dialog_Library:mergeDebugProguardFiles UP-TO-DATE
:IOS_Dialog_Library:packageDebugRenderscript UP-TO-DATE
:IOS_Dialog_Library:compileDebugJavaWithJavac UP-TO-DATE
:IOS_Dialog_Library:processDebugJavaRes UP-TO-DATE
:IOS_Dialog_Library:transformResourcesWithMergeJavaResForDebug
UP-TO-DATE
:IOS_Dialog_Library:transformClassesAndResourcesWithSyncLibJarsForDebug
UP-TO-DATE :IOS_Dialog_Library:mergeDebugJniLibFolders UP-TO-DATE
:IOS_Dialog_Library:transformNative_libsWithMergeJniLibsForDebug
UP-TO-DATE
:IOS_Dialog_Library:transformNative_libsWithSyncJniLibsForDebug
UP-TO-DATE :IOS_Dialog_Library:bundleDebug UP-TO-DATE
:IOS_Dialog_Library:compileDebugSources UP-TO-DATE
:IOS_Dialog_Library:assembleDebug UP-TO-DATE
:IOS_Dialog_Library:processDebugAndroidTestManifest UP-TO-DATE
:IOS_Dialog_Library:compileDebugAndroidTestRenderscript UP-TO-DATE
:IOS_Dialog_Library:generateDebugAndroidTestBuildConfig UP-TO-DATE
:IOS_Dialog_Library:generateDebugAndroidTestAssets UP-TO-DATE
:IOS_Dialog_Library:mergeDebugAndroidTestAssets UP-TO-DATE
:IOS_Dialog_Library:generateDebugAndroidTestResValues UP-TO-DATE
:IOS_Dialog_Library:generateDebugAndroidTestResources UP-TO-DATE
:IOS_Dialog_Library:mergeDebugAndroidTestResources AAPT err(Facade for
98288211): libpng error: Not a PNG file Error:Execution failed for
task ':IOS_Dialog_Library:mergeDebugAndroidTestResources'.
Some file crunching failed, see logs for details Information:BUILD FAILED Information:Total time: 1.462 secs Information:1 error
Information:0 warnings Information:See complete output in console
I got a lot of places did not find this problem, need your help, thank you
From bug, here it is said that this can happen when using the Gradle Tools v1.1.0. After updating to v1.1.3, this has not happened anymore
I have trouble with launching application in debug build type. I have application which depends on library, which depens on another library. I switched everything to debug build variant, same as in image.
Problrem is that inside library I have few functionality which I want to turn off in debug, such as loggin and analytics, but library every time compiles in release build type.
In Gradle console I see that application compiling in debug variant, but every project that it depends on compiling in release variant.
Executing tasks: [:app:assembleDebug]
Parallel execution with configuration on demand is an incubating feature.
/home/cooperok/AndroidStudioWorkspace/MyApp/app/build/outputs/apk/app-debug.apk
app-debug-1.0.5.apk
/home/cooperok/AndroidStudioWorkspace/MyApp/app/build/outputs/apk/app-release.apk
app-release-1.0.5.apk
:app:preBuild
:library:compileLint UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:library:copyReleaseLint UP-TO-DATE
:library:preBuild
:library-2:compileLint UP-TO-DATE
:library-2:copyReleaseLint UP-TO-DATE
:library:preReleaseBuild
:library-2:mergeReleaseProguardFiles UP-TO-DATE
:library:checkReleaseManifest
:library:preReleaseUnitTestBuild UP-TO-DATE
:library:generateReleaseBuildConfig UP-TO-DATE
:library-2:preBuild UP-TO-DATE
:library-2:preReleaseBuild UP-TO-DATE
:library-2:checkReleaseManifest
:library-2:prepareReleaseDependencies UP-TO-DATE
:library:generateReleaseAssets UP-TO-DATE
:library:generateReleaseResValues UP-TO-DATE
:library:processReleaseJavaRes UP-TO-DATE
:library:mergeReleaseProguardFiles UP-TO-DATE
:library:compileReleaseNdk UP-TO-DATE
:library:packageReleaseJniLibs UP-TO-DATE
:library:packageReleaseLocalJar UP-TO-DATE
:library:packageReleaseRenderscript
:library-2:compileReleaseAidl UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:library:preReleaseBuild UP-TO-DATE
:library-2:compileReleaseRenderscript
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:validateDebugSigning
:library-2:compileReleaseRenderscript UP-TO-DATE
:library-2:generateReleaseBuildConfig UP-TO-DATE
:library-2:generateReleaseAssets UP-TO-DATE
:library-2:mergeReleaseAssets UP-TO-DATE
:library-2:generateReleaseResValues UP-TO-DATE
:library-2:generateReleaseResources UP-TO-DATE
:library-2:packageReleaseResources UP-TO-DATE
:library-2:processReleaseManifest UP-TO-DATE
:library-2:processReleaseResources UP-TO-DATE
:library-2:generateReleaseSources UP-TO-DATE
:library-2:processReleaseJavaRes UP-TO-DATE
:library-2:compileReleaseJava UP-TO-DATE
:library-2:packageReleaseJar UP-TO-DATE
:library-2:compileReleaseNdk UP-TO-DATE
:library-2:packageReleaseJniLibs UP-TO-DATE
:library-2:packageReleaseLocalJar UP-TO-DATE
:library-2:packageReleaseRenderscript UP-TO-DATE
:library-2:bundleRelease UP-TO-DATE
:library:prepareComAndroidSupportSupportV42211Library UP-TO-DATE
:library:prepareComCrashlyticsSdkAndroidAnswers122Library UP-TO-DATE
:library:prepareComCrashlyticsSdkAndroidBeta112Library UP-TO-DATE
:library:prepareComCrashlyticsSdkAndroidCrashlytics232Library UP-TO-DATE
:library:prepareComCrashlyticsSdkAndroidCrashlyticsCore232Library UP-TO-DATE
:library:prepareComGoogleAndroidGmsPlayServicesBase730Library UP-TO-DATE
:library:prepareComGoogleAndroidGmsPlayServicesMaps730Library UP-TO-DATE
:library:prepareIoFabricSdkAndroidFabric133Library UP-TO-DATE
:library:prepareReleaseDependencies
:library:compileReleaseAidl
:library:compileReleaseRenderscript UP-TO-DATE
:library:mergeReleaseAssets UP-TO-DATE
:library:generateReleaseResources UP-TO-DATE
:library:mergeReleaseResources UP-TO-DATE
:library:processReleaseManifest UP-TO-DATE
:library:processReleaseResources UP-TO-DATE
:library:generateReleaseSources
:library:compileReleaseJava
So after compiling project variable BuildConfig.DEBUG inside library is false
How to compile everything in debug build variant?
It turns out that this is known issue, and there is bug report since 2013 at code.google.com.
I founded there solution. To run every project in build variant that you need, you should setting this in the dependency project
android {
publishNonDefault true
...
}
and this in the project that uses it
dependencies {
releaseCompile project(path: ':theotherproject', configuration: 'release')
debugCompile project(path: ':theotherproject', configuration: 'debug')
}
I have downloaded the Google services sample from here and when I try to run it following the steps about the JSON, then an error pops out. The problem is that the console and the log, shows nothing about this error.
It looks like this.
I have no idea what am I doing wrong but, after this, I can't try to run it again, because the Run button is disabled.
Any idea to solve this?
UPDATE: This is the log in the Gradle Console:
Configuration on demand is an incubating feature.
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72211Library UP-TO-DATE
:app:prepareComAndroidSupportMediarouterV72200Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42211Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAds750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppinvite750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppstate750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesCast750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesDrive750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesFitness750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGames750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGcm750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesIdentity750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesLocation750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesMaps750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesNearby750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPanorama750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPlus750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesSafetynet750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWallet750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWearable750Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:processDebugGoogleServices
No matching client found for package name 'gcm.play.android.samples.com.gcmquickstart'
:app:generateDebugResources
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJavaWithJavac
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:preDexDebug
:app:dexDebug
AGPBI: {"kind":"simple","text":"Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]}
:app:validateDebugSigning
:app:packageDebug
:app:zipalignDebug
:app:assembleDebug
BUILD SUCCESSFUL
Total time: 19.379 secs
This works for me:
In build.gradle(app) I have
applicationId "com.examples.Activities"
and in google-services.json I have
"package_name": "com.examples"
I changed
"package_name": "com.examples"
to
"package_name": "com.examples.Activities"
I was encountered the same problem.
How I solve it is to modify the file "build.gradle(Project: gcm)".
in file of build.gradle(Project: gcm)
buildscript {
...
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.google.gms:google-services:1.3.0-beta1'// downgrade it version
}
}
Hope this would help you.
This must be because you are using different application id for different flavours.
I solved it by getting a google-services.json for my application ids.
For more details: google-services.json for different productFlavors
Official: https://developers.google.com/android/guides/google-services-plugin#adding_the_json_file
I am trying to integrated Facebook sign in to my application. If I added below lines to my build.gradle file for the application:
repositories {
mavenCentral()
}
in dependencies
compile 'com.facebook.android:facebook-android-sdk:4.2.0'
After that if I rebuild project it rebuilds it successfully. But when I try to run it takes long time to build and then shows dialog with text:
Failed to complete Gradle execution.
Casue:
Though the Message Gradle Build windows does not show any error. Here is the output of it
Information:Gradle tasks [:app:assembleDebug]
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2220Library UP-TO-DATE
:app:prepareComAndroidSupportMediarouterV72200Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42220Library UP-TO-DATE
:app:prepareComFacebookAndroidFacebookAndroidSdk420Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAds750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppinvite750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppstate750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesCast750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesDrive750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesFitness750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGames750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGcm750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesIdentity750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesLocation750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesMaps750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesNearby750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPanorama750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPlus750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesSafetynet750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWallet750Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWearable750Library UP-TO-DATE
:app:prepareTextvalidatorLibrary UP-TO-DATE
:app:prepareThreepioLibrary UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:processDebugGoogleServices
File google-services.json is missing from module root folder. The Google Quickstart Plugin cannot function without it.
:app:generateDebugResources
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources UP-TO-DATE
:app:preDexDebug
:app:dexDebug
Information:0 errors
Information:0 warnings
Information:See complete output in console
I also modified the Gradle VM options as -XX:MaxHeapSize=256m -Xmx256m but still it gives the error.
If I remove the dependency it works fine. I am not sure why this happens.
Executing this command ./gradlew assembleDebug in my project directory showed the real culprit of the problem.
When I add facebook SDK dependency to my project it exceeds the limit of 64K methods in my dex file. Due to this the gradle build was failing.
I added multiDexEnabled = true into my build types in build.gradle file. And derive my custom application class from MultiDexApplication instead of Application.
This solved my issue.