Skip to content

Instantly share code, notes, and snippets.

@rciovati
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rciovati/ede56a70c8828b4d737f to your computer and use it in GitHub Desktop.
Save rciovati/ede56a70c8828b4d737f to your computer and use it in GitHub Desktop.
Android gradle plugin incremental dexing error
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
dexOptions {
incremental true
}
defaultConfig {
minSdkVersion 19
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.+'
}
stdout of: ./gradlew clean assembleDebug --info
Connected to the daemon. Dispatching Build{id=4aae4d48-bbcc-4853-bb80-303a1c905be9.1, currentDir=/home/rciovati/misc/IncrementalTest} request.
The client will now receive all logging from the daemon (pid: 8212). The daemon log file: /home/rciovati/.gradle/daemon/1.10/daemon-8212.out.log
Executing build with daemon context: DefaultDaemonContext[uid=3a11e726-6ea5-4e51-b744-3550e64c956f,javaHome=/usr/lib/jvm/java-7-openjdk-amd64,daemonRegistryDir=/home/rciovati/.gradle/daemon,pid=8212,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8]
Starting Build
Settings evaluated using settings file '/home/rciovati/misc/IncrementalTest/settings.gradle'.
Projects loaded. Root project using build file '/home/rciovati/misc/IncrementalTest/build.gradle'.
Included projects: [root project 'IncrementalTest', project ':app']
Evaluating root project 'IncrementalTest' using build file '/home/rciovati/misc/IncrementalTest/build.gradle'.
kxml2#kxml2;2.3.0 is relocated to net.sf.kxml#kxml2;2.3.0. Please update your dependencies.
Evaluating project ':app' using build file '/home/rciovati/misc/IncrementalTest/app/build.gradle'.
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
All projects evaluated.
file or directory '/home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug', not found
Selected primary task 'assembleDebug'
Tasks to be executed: [task ':app:preBuild', task ':app:compileDebugNdk', task ':app:preDebugBuild', task ':app:checkDebugManifest', task ':app:preReleaseBuild', task ':app:prepareComAndroidSupportAppcompatV71910Library', task ':app:prepareDebugDependencies', task ':app:compileDebugAidl', task ':app:compileDebugRenderscript', task ':app:generateDebugBuildConfig', task ':app:mergeDebugAssets', task ':app:generateDebugResValues', task ':app:generateDebugResources', task ':app:mergeDebugResources', task ':app:processDebugManifest', task ':app:processDebugResources', task ':app:generateDebugSources', task ':app:compileDebugJava', task ':app:preDexDebug', task ':app:dexDebug', task ':app:processDebugJavaRes', task ':app:validateDebugSigning', task ':app:packageDebug', task ':app:assembleDebug']
:app:preBuild (Thread[Daemon Thread 3,5,main]) started.
:app:preBuild
Executing task ':app:preBuild' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
:app:preBuild (Thread[Daemon Thread 3,5,main]) completed. Took 0.025 secs.
:app:compileDebugNdk (Thread[Daemon Thread 3,5,main]) started.
:app:compileDebugNdk
In-memory cache of taskArtifacts.bin: Size{14}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
In-memory cache of outputFileStates.bin: Size{25}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
Executing task ':app:compileDebugNdk' (up-to-date check took 0.002 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/ndk/debug/obj has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/ndk/debug/lib has changed.
All input files are considered out-of-date for incremental task ':app:compileDebugNdk'.
In-memory cache of fileSnapshots.bin: Size{60}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
:app:compileDebugNdk (Thread[Daemon Thread 3,5,main]) completed. Took 0.015 secs.
:app:preDebugBuild (Thread[Daemon Thread 3,5,main]) started.
:app:preDebugBuild
Skipping task ':app:preDebugBuild' as it has no actions.
:app:preDebugBuild (Thread[Daemon Thread 3,5,main]) completed. Took 0.001 secs.
:app:checkDebugManifest (Thread[Daemon Thread 3,5,main]) started.
:app:checkDebugManifest
Executing task ':app:checkDebugManifest' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
:app:checkDebugManifest (Thread[Daemon Thread 3,5,main]) completed. Took 0.001 secs.
:app:preReleaseBuild (Thread[Daemon Thread 3,5,main]) started.
:app:preReleaseBuild
Skipping task ':app:preReleaseBuild' as it has no actions.
:app:preReleaseBuild (Thread[Daemon Thread 3,5,main]) completed. Took 0.001 secs.
:app:prepareComAndroidSupportAppcompatV71910Library (Thread[Daemon Thread 3,5,main]) started.
:app:prepareComAndroidSupportAppcompatV71910Library
In-memory cache of fileHashes.bin: Size{867}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
Skipping task ':app:prepareComAndroidSupportAppcompatV71910Library' as it is up-to-date (took 0.017 secs).
:app:prepareComAndroidSupportAppcompatV71910Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV71910Library (Thread[Daemon Thread 3,5,main]) completed. Took 0.018 secs.
:app:prepareDebugDependencies (Thread[Daemon Thread 3,5,main]) started.
:app:prepareDebugDependencies
Executing task ':app:prepareDebugDependencies' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
:app:prepareDebugDependencies (Thread[Daemon Thread 3,5,main]) completed. Took 0.001 secs.
:app:compileDebugAidl (Thread[Daemon Thread 3,5,main]) started.
:app:compileDebugAidl
Executing task ':app:compileDebugAidl' (up-to-date check took 0.002 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/source/aidl/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/incremental/aidl/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/incremental/aidl/debug/dependency.store has been removed.
All input files are considered out-of-date for incremental task ':app:compileDebugAidl'.
Unable do incremental execution: full task run
:app:compileDebugAidl (Thread[Daemon Thread 3,5,main]) completed. Took 0.021 secs.
:app:compileDebugRenderscript (Thread[Daemon Thread 3,5,main]) started.
:app:compileDebugRenderscript
Executing task ':app:compileDebugRenderscript' (up-to-date check took 0.002 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/rs/debug/lib has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/source/rs/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/rs/debug/obj has changed.
:app:compileDebugRenderscript (Thread[Daemon Thread 3,5,main]) completed. Took 0.014 secs.
:app:generateDebugBuildConfig (Thread[Daemon Thread 3,5,main]) started.
:app:generateDebugBuildConfig
Executing task ':app:generateDebugBuildConfig' (up-to-date check took 0.002 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/source/buildConfig/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/source/buildConfig/debug/it/rciovati/incrementaltest/app/BuildConfig.java has been removed.
:app:generateDebugBuildConfig (Thread[Daemon Thread 3,5,main]) completed. Took 0.021 secs.
:app:mergeDebugAssets (Thread[Daemon Thread 3,5,main]) started.
:app:mergeDebugAssets
Executing task ':app:mergeDebugAssets' (up-to-date check took 0.002 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/incremental/mergeAssets/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/assets/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/incremental/mergeAssets/debug/merger.xml has been removed.
All input files are considered out-of-date for incremental task ':app:mergeDebugAssets'.
Unable do incremental execution: full task run
:app:mergeDebugAssets (Thread[Daemon Thread 3,5,main]) completed. Took 0.031 secs.
:app:generateDebugResValues (Thread[Daemon Thread 3,5,main]) started.
:app:generateDebugResValues
Skipping task ':app:generateDebugResValues' as it is up-to-date (took 0.001 secs).
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResValues (Thread[Daemon Thread 3,5,main]) completed. Took 0.002 secs.
:app:generateDebugResources (Thread[Daemon Thread 3,5,main]) started.
:app:generateDebugResources
Skipping task ':app:generateDebugResources' as it has no actions.
:app:generateDebugResources (Thread[Daemon Thread 3,5,main]) completed. Took 0.001 secs.
:app:mergeDebugResources (Thread[Daemon Thread 3,5,main]) started.
:app:mergeDebugResources
Executing task ':app:mergeDebugResources' (up-to-date check took 0.015 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/res/all/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/incremental/mergeResources/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/res/all/debug/drawable-hdpi/abc_ic_menu_moreoverflow_normal_holo_dark.png has been removed.
All input files are considered out-of-date for incremental task ':app:mergeDebugResources'.
Unable do incremental execution: full task run
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/aapt s -i /home/rciovati/misc/IncrementalTest/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-hdpi/abc_list_selector_disabled_holo_light.9.png -o /home/rciovati/misc/IncrementalTest/app/build/res/all/debug/drawable-hdpi/abc_list_selector_disabled_holo_light.9.png
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/aapt s -i /home/rciovati/misc/IncrementalTest/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-xxhdpi/abc_ic_voice_search.png -o /home/rciovati/misc/IncrementalTest/app/build/res/all/debug/drawable-xxhdpi/abc_ic_voice_search.png
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/aapt s -i /home/rciovati/misc/IncrementalTest/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-hdpi/abc_textfield_search_right_default_holo_light.9.png -o /home/rciovati/misc/IncrementalTest/app/build/res/all/debug/drawable-hdpi/abc_textfield_search_right_default_holo_light.9.png
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/aapt s -i /home/rciovati/misc/IncrementalTest/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-xhdpi/abc_ic_cab_done_holo_light.png -o /home/rciovati/misc/IncrementalTest/app/build/res/all/debug/drawable-xhdpi/abc_ic_cab_done_holo_light.png
Crunching single PNG file: /home/rciovati/misc/IncrementalTest/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-xxhdpi/abc_ic_voice_search.png
Output file: /home/rciovati/misc/IncrementalTest/app/build/res/all/debug/drawable-xxhdpi/abc_ic_voice_search.png
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/aapt s -i /home/rciovati/misc/IncrementalTest/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-mdpi/abc_ic_menu_moreoverflow_normal_holo_light.png -o /home/rciovati/misc/IncrementalTest/app/build/res/all/debug/drawable-mdpi/abc_ic_menu_moreoverflow_normal_holo_light.png
[cut away some crunching infos]
:app:mergeDebugResources (Thread[Daemon Thread 3,5,main]) completed. Took 1.205 secs.
:app:processDebugManifest (Thread[Daemon Thread 3,5,main]) started.
:app:processDebugManifest
Executing task ':app:processDebugManifest' (up-to-date check took 0.001 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/manifests/debug/AndroidManifest.xml has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/manifests/debug/AndroidManifest.xml has been removed.
All input files are considered out-of-date for incremental task ':app:processDebugManifest'.
:app:processDebugManifest (Thread[Daemon Thread 3,5,main]) completed. Took 0.042 secs.
:app:processDebugResources (Thread[Daemon Thread 3,5,main]) started.
:app:processDebugResources
Executing task ':app:processDebugResources' (up-to-date check took 0.021 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/libs/app-debug.ap_ has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/source/r/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/symbols/debug has changed.
All input files are considered out-of-date for incremental task ':app:processDebugResources'.
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/aapt package -f --no-crunch -I /home/rciovati/android/android-studio/sdk/platforms/android-19/android.jar -M /home/rciovati/misc/IncrementalTest/app/build/manifests/debug/AndroidManifest.xml -S /home/rciovati/misc/IncrementalTest/app/build/res/all/debug -A /home/rciovati/misc/IncrementalTest/app/build/assets/debug -m -J /home/rciovati/misc/IncrementalTest/app/build/source/r/debug -F /home/rciovati/misc/IncrementalTest/app/build/libs/app-debug.ap_ --debug-mode --custom-package it.rciovati.incrementaltest.app --output-text-symbols /home/rciovati/misc/IncrementalTest/app/build/symbols/debug
:app:processDebugResources (Thread[Daemon Thread 3,5,main]) completed. Took 0.273 secs.
:app:generateDebugSources (Thread[Daemon Thread 3,5,main]) started.
:app:generateDebugSources
Skipping task ':app:generateDebugSources' as it has no actions.
:app:generateDebugSources (Thread[Daemon Thread 3,5,main]) completed. Took 0.0 secs.
:app:compileDebugJava (Thread[Daemon Thread 3,5,main]) started.
:app:compileDebugJava
Executing task ':app:compileDebugJava' (up-to-date check took 0.003 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/classes/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/dependency-cache/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/classes/debug/android/support/v7/appcompat/R$color.class has been removed.
Compiling with JDK Java compiler API.
:app:compileDebugJava (Thread[Daemon Thread 3,5,main]) completed. Took 0.119 secs.
:app:preDexDebug (Thread[Daemon Thread 3,5,main]) started.
:app:preDexDebug
Executing task ':app:preDexDebug' (up-to-date check took 0.001 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/support-v4-19.1.0-757cc19c4d9ecd5ded96b6b652cc08dbdab31285.jar has been removed.
Output file /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/classes-614889ef538694b978fe72992c6ccecd7d0effab.jar has been removed.
All input files are considered out-of-date for incremental task ':app:preDexDebug'.
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/dx --dex --output /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/classes-614889ef538694b978fe72992c6ccecd7d0effab.jar /home/rciovati/misc/IncrementalTest/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/classes.jar
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/dx --dex --output /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/support-v4-19.1.0-757cc19c4d9ecd5ded96b6b652cc08dbdab31285.jar /home/rciovati/android/android-studio/sdk/extras/android/m2repository/com/android/support/support-v4/19.1.0/support-v4-19.1.0.jar
:app:preDexDebug (Thread[Daemon Thread 3,5,main]) completed. Took 8.381 secs.
:app:dexDebug (Thread[Daemon Thread 3,5,main]) started.
:app:dexDebug
Executing task ':app:dexDebug' (up-to-date check took 0.002 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/dex/debug has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/dex/debug/classes.dex has been removed.
All input files are considered out-of-date for incremental task ':app:dexDebug'.
Unable to do incremental execution: full task run.
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/dx --dex --num-threads=4 --output /home/rciovati/misc/IncrementalTest/app/build/dex/debug /home/rciovati/misc/IncrementalTest/app/build/classes/debug /home/rciovati/misc/IncrementalTest/app/build/dependency-cache/debug /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/support-v4-19.1.0-757cc19c4d9ecd5ded96b6b652cc08dbdab31285.jar /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/classes-614889ef538694b978fe72992c6ccecd7d0effab.jar
Merged dex A (29 defs/43.6KiB) with dex B (520 defs/562.5KiB). Result is 549 defs/741.3KiB. Took 0.3s
Merged dex A (549 defs/741.3KiB) with dex B (190 defs/324.6KiB). Result is 739 defs/1362.8KiB. Took 0.2s
:app:dexDebug (Thread[Daemon Thread 3,5,main]) completed. Took 1.088 secs.
:app:processDebugJavaRes (Thread[Daemon Thread 3,5,main]) started.
:app:processDebugJavaRes
Skipping task ':app:processDebugJavaRes' as it has no source files.
:app:processDebugJavaRes UP-TO-DATE
:app:processDebugJavaRes (Thread[Daemon Thread 3,5,main]) completed. Took 0.0 secs.
:app:validateDebugSigning (Thread[Daemon Thread 3,5,main]) started.
:app:validateDebugSigning
Executing task ':app:validateDebugSigning' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
:app:validateDebugSigning (Thread[Daemon Thread 3,5,main]) completed. Took 0.001 secs.
:app:packageDebug (Thread[Daemon Thread 3,5,main]) started.
:app:packageDebug
Executing task ':app:packageDebug' (up-to-date check took 0.003 secs) due to:
Output file /home/rciovati/misc/IncrementalTest/app/build/apk/app-debug-unaligned.apk has changed.
Output file /home/rciovati/misc/IncrementalTest/app/build/apk/app-debug-unaligned.apk has been removed.
All input files are considered out-of-date for incremental task ':app:packageDebug'.
:app:packageDebug (Thread[Daemon Thread 3,5,main]) completed. Took 0.338 secs.
:app:assembleDebug (Thread[Daemon Thread 3,5,main]) started.
:app:assembleDebug
Skipping task ':app:assembleDebug' as it has no actions.
:app:assembleDebug (Thread[Daemon Thread 3,5,main]) completed. Took 0.001 secs.
BUILD SUCCESSFUL
Total time: 13.875 secs
Stopped 0 compiler daemon(s).
PREDEX CACHE HITS: 0
PREDEX CACHE MISSES: 2
stdout and stderr of: ./gradlew assembleDebug --info after changing one line of code in MainActivity.java
Connected to the daemon. Dispatching Build{id=c6115405-fb96-4618-8a29-5a0730627c20.1, currentDir=/home/rciovati/misc/IncrementalTest} request.
The client will now receive all logging from the daemon (pid: 8212). The daemon log file: /home/rciovati/.gradle/daemon/1.10/daemon-8212.out.log
Executing build with daemon context: DefaultDaemonContext[uid=3a11e726-6ea5-4e51-b744-3550e64c956f,javaHome=/usr/lib/jvm/java-7-openjdk-amd64,daemonRegistryDir=/home/rciovati/.gradle/daemon,pid=8212,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8]
Starting Build
Settings evaluated using settings file '/home/rciovati/misc/IncrementalTest/settings.gradle'.
Projects loaded. Root project using build file '/home/rciovati/misc/IncrementalTest/build.gradle'.
Included projects: [root project 'IncrementalTest', project ':app']
Evaluating root project 'IncrementalTest' using build file '/home/rciovati/misc/IncrementalTest/build.gradle'.
kxml2#kxml2;2.3.0 is relocated to net.sf.kxml#kxml2;2.3.0. Please update your dependencies.
Evaluating project ':app' using build file '/home/rciovati/misc/IncrementalTest/app/build.gradle'.
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
All projects evaluated.
Selected primary task 'assembleDebug'
Tasks to be executed: [task ':app:preBuild', task ':app:compileDebugNdk', task ':app:preDebugBuild', task ':app:checkDebugManifest', task ':app:preReleaseBuild', task ':app:prepareComAndroidSupportAppcompatV71910Library', task ':app:prepareDebugDependencies', task ':app:compileDebugAidl', task ':app:compileDebugRenderscript', task ':app:generateDebugBuildConfig', task ':app:mergeDebugAssets', task ':app:generateDebugResValues', task ':app:generateDebugResources', task ':app:mergeDebugResources', task ':app:processDebugManifest', task ':app:processDebugResources', task ':app:generateDebugSources', task ':app:compileDebugJava', task ':app:preDexDebug', task ':app:dexDebug', task ':app:processDebugJavaRes', task ':app:validateDebugSigning', task ':app:packageDebug', task ':app:assembleDebug']
:app:preBuild (Thread[Daemon Thread 7,5,main]) started.
:app:preBuild
Executing task ':app:preBuild' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
:app:preBuild (Thread[Daemon Thread 7,5,main]) completed. Took 0.024 secs.
:app:compileDebugNdk (Thread[Daemon Thread 7,5,main]) started.
:app:compileDebugNdk
In-memory cache of taskArtifacts.bin: Size{14}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
In-memory cache of outputFileStates.bin: Size{25}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
Skipping task ':app:compileDebugNdk' as it is up-to-date (took 0.003 secs).
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugNdk (Thread[Daemon Thread 7,5,main]) completed. Took 0.007 secs.
:app:preDebugBuild (Thread[Daemon Thread 7,5,main]) started.
:app:preDebugBuild
Skipping task ':app:preDebugBuild' as it has no actions.
:app:preDebugBuild (Thread[Daemon Thread 7,5,main]) completed. Took 0.001 secs.
:app:checkDebugManifest (Thread[Daemon Thread 7,5,main]) started.
:app:checkDebugManifest
Executing task ':app:checkDebugManifest' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
:app:checkDebugManifest (Thread[Daemon Thread 7,5,main]) completed. Took 0.001 secs.
:app:preReleaseBuild (Thread[Daemon Thread 7,5,main]) started.
:app:preReleaseBuild
Skipping task ':app:preReleaseBuild' as it has no actions.
:app:preReleaseBuild (Thread[Daemon Thread 7,5,main]) completed. Took 0.001 secs.
:app:prepareComAndroidSupportAppcompatV71910Library (Thread[Daemon Thread 7,5,main]) started.
:app:prepareComAndroidSupportAppcompatV71910Library
In-memory cache of fileHashes.bin: Size{867}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
Skipping task ':app:prepareComAndroidSupportAppcompatV71910Library' as it is up-to-date (took 0.016 secs).
:app:prepareComAndroidSupportAppcompatV71910Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV71910Library (Thread[Daemon Thread 7,5,main]) completed. Took 0.016 secs.
:app:prepareDebugDependencies (Thread[Daemon Thread 7,5,main]) started.
:app:prepareDebugDependencies
Executing task ':app:prepareDebugDependencies' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
:app:prepareDebugDependencies (Thread[Daemon Thread 7,5,main]) completed. Took 0.001 secs.
:app:compileDebugAidl (Thread[Daemon Thread 7,5,main]) started.
:app:compileDebugAidl
Skipping task ':app:compileDebugAidl' as it is up-to-date (took 0.001 secs).
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugAidl (Thread[Daemon Thread 7,5,main]) completed. Took 0.003 secs.
:app:compileDebugRenderscript (Thread[Daemon Thread 7,5,main]) started.
:app:compileDebugRenderscript
Skipping task ':app:compileDebugRenderscript' as it is up-to-date (took 0.003 secs).
:app:compileDebugRenderscript UP-TO-DATE
:app:compileDebugRenderscript (Thread[Daemon Thread 7,5,main]) completed. Took 0.006 secs.
:app:generateDebugBuildConfig (Thread[Daemon Thread 7,5,main]) started.
:app:generateDebugBuildConfig
Skipping task ':app:generateDebugBuildConfig' as it is up-to-date (took 0.002 secs).
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugBuildConfig (Thread[Daemon Thread 7,5,main]) completed. Took 0.01 secs.
:app:mergeDebugAssets (Thread[Daemon Thread 7,5,main]) started.
:app:mergeDebugAssets
Skipping task ':app:mergeDebugAssets' as it is up-to-date (took 0.001 secs).
:app:mergeDebugAssets UP-TO-DATE
:app:mergeDebugAssets (Thread[Daemon Thread 7,5,main]) completed. Took 0.003 secs.
:app:generateDebugResValues (Thread[Daemon Thread 7,5,main]) started.
:app:generateDebugResValues
Skipping task ':app:generateDebugResValues' as it is up-to-date (took 0.001 secs).
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResValues (Thread[Daemon Thread 7,5,main]) completed. Took 0.002 secs.
:app:generateDebugResources (Thread[Daemon Thread 7,5,main]) started.
:app:generateDebugResources
Skipping task ':app:generateDebugResources' as it has no actions.
:app:generateDebugResources UP-TO-DATE
:app:generateDebugResources (Thread[Daemon Thread 7,5,main]) completed. Took 0.001 secs.
:app:mergeDebugResources (Thread[Daemon Thread 7,5,main]) started.
:app:mergeDebugResources
Skipping task ':app:mergeDebugResources' as it is up-to-date (took 0.022 secs).
:app:mergeDebugResources UP-TO-DATE
:app:mergeDebugResources (Thread[Daemon Thread 7,5,main]) completed. Took 0.024 secs.
:app:processDebugManifest (Thread[Daemon Thread 7,5,main]) started.
:app:processDebugManifest
Skipping task ':app:processDebugManifest' as it is up-to-date (took 0.001 secs).
:app:processDebugManifest UP-TO-DATE
:app:processDebugManifest (Thread[Daemon Thread 7,5,main]) completed. Took 0.004 secs.
:app:processDebugResources (Thread[Daemon Thread 7,5,main]) started.
:app:processDebugResources
Skipping task ':app:processDebugResources' as it is up-to-date (took 0.01 secs).
:app:processDebugResources UP-TO-DATE
:app:processDebugResources (Thread[Daemon Thread 7,5,main]) completed. Took 0.016 secs.
:app:generateDebugSources (Thread[Daemon Thread 7,5,main]) started.
:app:generateDebugSources
Skipping task ':app:generateDebugSources' as it has no actions.
:app:generateDebugSources UP-TO-DATE
:app:generateDebugSources (Thread[Daemon Thread 7,5,main]) completed. Took 0.001 secs.
:app:compileDebugJava (Thread[Daemon Thread 7,5,main]) started.
:app:compileDebugJava
Executing task ':app:compileDebugJava' (up-to-date check took 0.005 secs) due to:
Input file /home/rciovati/misc/IncrementalTest/app/src/main/java/it/rciovati/incrementaltest/app/MainActivity.java has changed.
Compiling with JDK Java compiler API.
In-memory cache of fileSnapshots.bin: Size{107}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
:app:compileDebugJava (Thread[Daemon Thread 7,5,main]) completed. Took 0.057 secs.
:app:preDexDebug (Thread[Daemon Thread 7,5,main]) started.
:app:preDexDebug
Skipping task ':app:preDexDebug' as it is up-to-date (took 0.001 secs).
:app:preDexDebug UP-TO-DATE
:app:preDexDebug (Thread[Daemon Thread 7,5,main]) completed. Took 0.003 secs.
:app:dexDebug (Thread[Daemon Thread 7,5,main]) started.
:app:dexDebug
Executing task ':app:dexDebug' (up-to-date check took 0.003 secs) due to:
Input file /home/rciovati/misc/IncrementalTest/app/build/classes/debug/it/rciovati/incrementaltest/app/MainActivity.class has changed.
command: /home/rciovati/android/android-studio/sdk/build-tools/19.0.3/dx --dex --incremental --no-strict --num-threads=4 --output /home/rciovati/misc/IncrementalTest/app/build/dex/debug /home/rciovati/misc/IncrementalTest/app/build/classes/debug /home/rciovati/misc/IncrementalTest/app/build/dependency-cache/debug /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/support-v4-19.1.0-757cc19c4d9ecd5ded96b6b652cc08dbdab31285.jar /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/classes-614889ef538694b978fe72992c6ccecd7d0effab.jar
Picked up _JAVA_OPTIONS:
Merged dex A (29 defs/43.6KiB) with dex B (739 defs/1362.8KiB). Result is 739 defs/1912.1KiB. Took 0.5s
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
:app:dexDebug FAILED
:app:dexDebug (Thread[Daemon Thread 7,5,main]) completed. Took 1.082 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/home/rciovati/android/android-studio/sdk/build-tools/19.0.3/dx --dex --incremental --no-strict --num-threads=4 --output /home/rciovati/misc/IncrementalTest/app/build/dex/debug /home/rciovati/misc/IncrementalTest/app/build/classes/debug /home/rciovati/misc/IncrementalTest/app/build/dependency-cache/debug /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/support-v4-19.1.0-757cc19c4d9ecd5ded96b6b652cc08dbdab31285.jar /home/rciovati/misc/IncrementalTest/app/build/pre-dexed/debug/classes-614889ef538694b978fe72992c6ccecd7d0effab.jar
Error Code:
2
Output:
Picked up _JAVA_OPTIONS:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 2.93 secs
Stopped 0 compiler daemon(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment