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')
}
Related
If I run my tests by the usual way everything is fine.
The problem is when I run tests with help of gradle they are executed twice. I use grandle to separate execution of small and medium tests.
This is the data of gradle console:
Executing tasks: [connectedAndroidTest]
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preProductionDebugBuild UP-TO-DATE
:app:checkProductionDebugManifest
:app:preProductionDebugAndroidTestBuild UP-TO-DATE
:app:preProductionReleaseBuild UP-TO-DATE
:app:preUiTestDebugAndroidTestBuild UP-TO-DATE
:app:preUiTestDebugBuild UP-TO-DATE
:app:preUiTestReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2421Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72421Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2421Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCompat2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUi2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUtils2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportFragment2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportMediaCompat2421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42421Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2421Library UP-TO-DATE
:app:preparePlDroidsonroidsGifAndroidGifDrawable123Library UP-TO-DATE
:app:prepareProductionDebugDependencies
:app:compileProductionDebugAidl UP-TO-DATE
:app:compileProductionDebugRenderscript UP-TO-DATE
:app:generateProductionDebugBuildConfig UP-TO-DATE
:app:generateProductionDebugResValues UP-TO-DATE
:app:generateProductionDebugResources UP-TO-DATE
:app:mergeProductionDebugResources UP-TO-DATE
:app:processProductionDebugManifest UP-TO-DATE
:app:processProductionDebugResources UP-TO-DATE
:app:generateProductionDebugSources UP-TO-DATE
:app:incrementalProductionDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileProductionDebugJavaWithJavac UP-TO-DATE
:app:compileProductionDebugNdk UP-TO-DATE
:app:compileProductionDebugSources UP-TO-DATE
:app:mergeProductionDebugShaders UP-TO-DATE
:app:compileProductionDebugShaders UP-TO-DATE
:app:generateProductionDebugAssets UP-TO-DATE
:app:mergeProductionDebugAssets UP-TO-DATE
:app:transformClassesWithDexForProductionDebug UP-TO-DATE
:app:mergeProductionDebugJniLibFolders UP-TO-DATE
:app:transformNative_libsWithMergeJniLibsForProductionDebug UP-TO-DATE
:app:processProductionDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForProductionDebug UP-TO-DATE
:app:validateSigningProductionDebug
:app:packageProductionDebug UP-TO-DATE
:app:assembleProductionDebug UP-TO-DATE
:app:prepareComAndroidSupportTestEspressoEspressoContrib222Library UP-TO-DATE
:app:prepareComAndroidSupportTestEspressoEspressoCore222Library UP-TO-DATE
:app:prepareComAndroidSupportTestEspressoEspressoIdlingResource222Library UP-TO-DATE
:app:prepareComAndroidSupportTestEspressoEspressoIntents222Library UP-TO-DATE
:app:prepareComAndroidSupportTestExposedInstrumentationApiPublish05Library UP-TO-DATE
:app:prepareComAndroidSupportTestRules05Library UP-TO-DATE
:app:prepareComAndroidSupportTestRunner05Library UP-TO-DATE
:app:prepareComAndroidSupportTestUiautomatorUiautomatorV18212Library UP-TO-DATE
:app:prepareProductionDebugAndroidTestDependencies
:app:compileProductionDebugAndroidTestAidl UP-TO-DATE
:app:processProductionDebugAndroidTestManifest UP-TO-DATE
:app:compileProductionDebugAndroidTestRenderscript UP-TO-DATE
:app:generateProductionDebugAndroidTestBuildConfig UP-TO-DATE
:app:generateProductionDebugAndroidTestResValues UP-TO-DATE
:app:generateProductionDebugAndroidTestResources UP-TO-DATE
:app:mergeProductionDebugAndroidTestResources UP-TO-DATE
:app:processProductionDebugAndroidTestResources UP-TO-DATE
:app:generateProductionDebugAndroidTestSources UP-TO-DATE
:app:incrementalProductionDebugAndroidTestJavaCompilationSafeguard UP-TO-DATE
:app:compileProductionDebugAndroidTestJavaWithJavac UP-TO-DATE
:app:compileProductionDebugAndroidTestNdk UP-TO-DATE
:app:compileProductionDebugAndroidTestSources UP-TO-DATE
:app:mergeProductionDebugAndroidTestShaders UP-TO-DATE
:app:compileProductionDebugAndroidTestShaders UP-TO-DATE
:app:generateProductionDebugAndroidTestAssets UP-TO-DATE
:app:mergeProductionDebugAndroidTestAssets UP-TO-DATE
:app:transformClassesWithDexForProductionDebugAndroidTest UP-TO-DATE
:app:mergeProductionDebugAndroidTestJniLibFolders UP-TO-DATE
:app:transformNative_libsWithMergeJniLibsForProductionDebugAndroidTest UP-TO-DATE
:app:processProductionDebugAndroidTestJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForProductionDebugAndroidTest UP-TO-DATE
:app:validateSigningProductionDebugAndroidTest
:app:packageProductionDebugAndroidTest UP-TO-DATE
:app:assembleProductionDebugAndroidTest UP-TO-DATE
:app:connectedProductionDebugAndroidTest
:app:checkUiTestDebugManifest
:app:prepareUiTestDebugDependencies
:app:compileUiTestDebugAidl UP-TO-DATE
:app:compileUiTestDebugRenderscript UP-TO-DATE
:app:generateUiTestDebugBuildConfig UP-TO-DATE
:app:generateUiTestDebugResValues UP-TO-DATE
:app:generateUiTestDebugResources UP-TO-DATE
:app:mergeUiTestDebugResources UP-TO-DATE
:app:processUiTestDebugManifest UP-TO-DATE
:app:processUiTestDebugResources UP-TO-DATE
:app:generateUiTestDebugSources UP-TO-DATE
:app:incrementalUiTestDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileUiTestDebugJavaWithJavac UP-TO-DATE
:app:compileUiTestDebugNdk UP-TO-DATE
:app:compileUiTestDebugSources UP-TO-DATE
:app:mergeUiTestDebugShaders UP-TO-DATE
:app:compileUiTestDebugShaders UP-TO-DATE
:app:generateUiTestDebugAssets UP-TO-DATE
:app:mergeUiTestDebugAssets UP-TO-DATE
:app:transformClassesWithDexForUiTestDebug UP-TO-DATE
:app:mergeUiTestDebugJniLibFolders UP-TO-DATE
:app:transformNative_libsWithMergeJniLibsForUiTestDebug UP-TO-DATE
:app:processUiTestDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForUiTestDebug UP-TO-DATE
:app:validateSigningUiTestDebug
:app:packageUiTestDebug UP-TO-DATE
:app:assembleUiTestDebug UP-TO-DATE
:app:prepareUiTestDebugAndroidTestDependencies
:app:compileUiTestDebugAndroidTestAidl UP-TO-DATE
:app:processUiTestDebugAndroidTestManifest UP-TO-DATE
:app:compileUiTestDebugAndroidTestRenderscript UP-TO-DATE
:app:generateUiTestDebugAndroidTestBuildConfig UP-TO-DATE
:app:generateUiTestDebugAndroidTestResValues UP-TO-DATE
:app:generateUiTestDebugAndroidTestResources UP-TO-DATE
:app:mergeUiTestDebugAndroidTestResources UP-TO-DATE
:app:processUiTestDebugAndroidTestResources UP-TO-DATE
:app:generateUiTestDebugAndroidTestSources UP-TO-DATE
:app:incrementalUiTestDebugAndroidTestJavaCompilationSafeguard UP-TO-DATE
:app:compileUiTestDebugAndroidTestJavaWithJavac UP-TO-DATE
:app:compileUiTestDebugAndroidTestNdk UP-TO-DATE
:app:compileUiTestDebugAndroidTestSources UP-TO-DATE
:app:mergeUiTestDebugAndroidTestShaders UP-TO-DATE
:app:compileUiTestDebugAndroidTestShaders UP-TO-DATE
:app:generateUiTestDebugAndroidTestAssets UP-TO-DATE
:app:mergeUiTestDebugAndroidTestAssets UP-TO-DATE
:app:transformClassesWithDexForUiTestDebugAndroidTest UP-TO-DATE
:app:mergeUiTestDebugAndroidTestJniLibFolders UP-TO-DATE
:app:transformNative_libsWithMergeJniLibsForUiTestDebugAndroidTest UP-TO-DATE
:app:processUiTestDebugAndroidTestJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForUiTestDebugAndroidTest UP-TO-DATE
:app:validateSigningUiTestDebugAndroidTest
:app:packageUiTestDebugAndroidTest UP-TO-DATE
:app:assembleUiTestDebugAndroidTest UP-TO-DATE
:app:connectedUiTestDebugAndroidTest
:app:connectedAndroidTest UP-TO-DATE
BUILD SUCCESSFUL
Total time: 19.84 secs
Tests are executing in lines :app:connectedProductionDebugAndroidTest and :app:connectedUiTestDebugAndroidTest.
Why do gradle run the tests twice? And how to avoid it?
If you are executing connectedAndroidTest, gradle will automatically run connected(FlavorName+BuildType)AndroidTest, looks like you have 2 flavors (Production and UiTest). You probably can just run one of those commands instead of running connectedAndroidTest.
I only have one flavor app, and the command is
gradlew :app:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.hello.work.annotation.Smoke, but gradlew also run testcase twice.
I know this is super dumb, but I forgot I had a phone plugged into my computer, so Gradle was trying to run tests on both my emulator AND the device. So it was running the tests twice.
After I perform gradlew bintrayUpload to upload my Android library to jcenter, it's always at "Building 97%". I am in China. This is my CLI code:
ElasticLayout ➤ ./gradlew bintrayUpload git:master*
Incremental java compilation is an incubating feature.
:ellib:preBuild UP-TO-DATE
:ellib:preReleaseBuild UP-TO-DATE
:ellib:compileReleaseNdk UP-TO-DATE
:ellib:compileLint
:ellib:copyReleaseLint UP-TO-DATE
:ellib:checkReleaseManifest
:ellib:preDebugAndroidTestBuild UP-TO-DATE
:ellib:preDebugBuild UP-TO-DATE
:ellib:preDebugUnitTestBuild UP-TO-DATE
:ellib:preReleaseUnitTestBuild UP-TO-DATE
:ellib:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE
:ellib:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE
:ellib:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE
:ellib:prepareComAndroidSupportSupportV42340Library UP-TO-DATE
:ellib:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE
:ellib:prepareReleaseDependencies
:ellib:compileReleaseAidl UP-TO-DATE
:ellib:compileReleaseRenderscript UP-TO-DATE
:ellib:generateReleaseBuildConfig UP-TO-DATE
:ellib:mergeReleaseShaders UP-TO-DATE
:ellib:compileReleaseShaders UP-TO-DATE
:ellib:generateReleaseAssets UP-TO-DATE
:ellib:mergeReleaseAssets UP-TO-DATE
:ellib:generateReleaseResValues UP-TO-DATE
:ellib:generateReleaseResources UP-TO-DATE
:ellib:mergeReleaseResources UP-TO-DATE
:ellib:processReleaseManifest UP-TO-DATE
:ellib:processReleaseResources UP-TO-DATE
:ellib:generateReleaseSources UP-TO-DATE
:ellib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:ellib:compileReleaseJavaWithJavac UP-TO-DATE
:ellib:extractReleaseAnnotations UP-TO-DATE
:ellib:mergeReleaseProguardFiles UP-TO-DATE
:ellib:packageReleaseRenderscript UP-TO-DATE
:ellib:packageReleaseResources UP-TO-DATE
:ellib:processReleaseJavaRes UP-TO-DATE
:ellib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:ellib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:ellib:mergeReleaseJniLibFolders UP-TO-DATE
:ellib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:ellib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:ellib:bundleRelease UP-TO-DATE
:ellib:javadoc UP-TO-DATE
:ellib:javadocJar UP-TO-DATE
:ellib:sourcesJar UP-TO-DATE
:ellib:install
Building 97% > :ellib:bintrayUpload
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 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.