alpha6 fixed the problem. However now when I run the app it crashes with the following logcat and stacktrace.
01-16 03:50:59.968 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_dependencies_7ec239608d467565bc6f479202ec42f20ec3b5fa.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_dependencies_7ec239608d467565bc6f479202ec42f20ec3b5fa....@classes.dex) because non-0 exit status 01-16 03:51:00.125 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_0_0cc50a6f09677ee17ae03076f74b5378d698b820.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_0_0cc50a6f09677ee17ae03076f74b5378d698b820....@classes.dex) because non-0 exit status 01-16 03:51:00.179 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_1_8f7938e2d457b2e80a46c8318ca27d1f21833b47.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_1_8f7938e2d457b2e80a46c8318ca27d1f21833b47....@classes.dex) because non-0 exit status 01-16 03:51:00.254 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_2_b6a4ead236c2238c2df0bf3a60d031719554f1b6.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_2_b6a4ead236c2238c2df0bf3a60d031719554f1b6....@classes.dex) because non-0 exit status 01-16 03:51:00.321 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_3_081525630b51fd597d92beb7c11f813f462516da.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_3_081525630b51fd597d92beb7c11f813f462516da....@classes.dex) because non-0 exit status 01-16 03:51:00.388 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_4_7bf5fecc821c58ed781936ffa65958e07e1f495e.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_4_7bf5fecc821c58ed781936ffa65958e07e1f495e....@classes.dex) because non-0 exit status 01-16 03:51:00.441 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_5_8efd1b37394115acaa167d5b063b120ae6a91714.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_5_8efd1b37394115acaa167d5b063b120ae6a91714....@classes.dex) because non-0 exit status 01-16 03:51:00.489 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_6_0252cd7de53d4a6aa6219f202c42ccbc07fea3f6.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_6_0252cd7de53d4a6aa6219f202c42ccbc07fea3f6....@classes.dex) because non-0 exit status 01-16 03:51:00.542 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_7_3df5da96a862e62322f85d5a37f7d34d6766475e.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_7_3df5da96a862e62322f85d5a37f7d34d6766475e....@classes.dex) because non-0 exit status 01-16 03:51:00.620 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_8_c795dbebbf9488ca7cb26c8735a9a968645a57a4.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_8_c795dbebbf9488ca7cb26c8735a9a968645a57a4....@classes.dex) because non-0 exit status 01-16 03:51:00.686 3448-3448/com.overstock.debug W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=x86 --instruction-set-features=default --dex-file=/data/app/com.overstock.debug-1/split_lib_slice_9_11956eb06e2a19818f979975882b6aeb649e114c.apk --oat-file=/data/dalvik-cache/x86/data@app@com.overstock.debug-1@split_lib_slice_9_11956eb06e2a19818f979975882b6aeb649e114c....@classes.dex) because non-0 exit status 01-16 03:51:00.713 3448-3448/com.overstock.debug W/System: ClassLoader referenced unknown path: /data/app/com.overstock.debug-1/lib/x86 01-16 03:51:00.716 3448-3448/com.overstock.debug E/AndroidRuntime: FATAL EXCEPTION: main Process: com.overstock.debug, PID: 3448 java.lang.RuntimeException: Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.tools.fd.runtime.BootstrapApplication" on path: DexPathList[[zip file "/data/app/com.overstock.debug-1/base.apk", zip file "/data/app/com.overstock.debug-1/split_lib_dependencies_7ec239608d467565bc6f479202ec42f20ec3b5fa.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_0_0cc50a6f09677ee17ae03076f74b5378d698b820.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_1_8f7938e2d457b2e80a46c8318ca27d1f21833b47.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_2_b6a4ead236c2238c2df0bf3a60d031719554f1b6.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_3_081525630b51fd597d92beb7c11f813f462516da.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_4_7bf5fecc821c58ed781936ffa65958e07e1f495e.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_5_8efd1b37394115acaa167d5b063b120ae6a91714.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_6_0252cd7de53d4a6aa6219f202c42ccbc07fea3f6.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_7_3df5da96a862e62322f85d5a37f7d34d6766475e.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_8_c795dbebbf9488ca7cb26c8735a9a968645a57a4.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_9_11956eb06e2a19818f979975882b6aeb649e114c.apk"],nativeLibraryDirectories=[/data/app/com.overstock.debug-1/lib/x86, /vendor/lib, /system/lib]] at android.app.LoadedApk.makeApplication(LoadedApk.java:578) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4680) at android.app.ActivityThread.-wrap1(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.tools.fd.runtime.BootstrapApplication" on path: DexPathList[[zip file "/data/app/com.overstock.debug-1/base.apk", zip file "/data/app/com.overstock.debug-1/split_lib_dependencies_7ec239608d467565bc6f479202ec42f20ec3b5fa.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_0_0cc50a6f09677ee17ae03076f74b5378d698b820.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_1_8f7938e2d457b2e80a46c8318ca27d1f21833b47.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_2_b6a4ead236c2238c2df0bf3a60d031719554f1b6.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_3_081525630b51fd597d92beb7c11f813f462516da.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_4_7bf5fecc821c58ed781936ffa65958e07e1f495e.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_5_8efd1b37394115acaa167d5b063b120ae6a91714.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_6_0252cd7de53d4a6aa6219f202c42ccbc07fea3f6.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_7_3df5da96a862e62322f85d5a37f7d34d6766475e.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_8_c795dbebbf9488ca7cb26c8735a9a968645a57a4.apk", zip file "/data/app/com.overstock.debug-1/split_lib_slice_9_11956eb06e2a19818f979975882b6aeb649e114c.apk"],nativeLibraryDirectories=[/data/app/com.overstock.debug-1/lib/x86, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at android.app.Instrumentation.newApplication(Instrumentation.java:981) at android.app.LoadedApk.makeApplication(LoadedApk.java:573) On Friday, January 15, 2016 at 10:16:48 PM UTC-7, Jerome Dochez wrote: > > we just released alpha6, with a change that might fix this issue. would > you mind trying ? > > thx > > On Fri, Jan 15, 2016 at 1:00 PM 'Siva Velusamy' via adt-dev < > adt...@googlegroups.com <javascript:>> wrote: > >> On Fri, Jan 15, 2016 at 9:27 AM, 'Jerome Dochez' via adt-dev < >> adt...@googlegroups.com <javascript:>> wrote: >> >>> thanks for the report, a bug was file, we are looking into it. >>> >>> >>> On Thu, Jan 14, 2016 at 2:33 PM Scott Olcott <scott...@gmail.com >>> <javascript:>> wrote: >>> >>>> When trying to run my app using Android Studio Preview 5 and android >>>> gradle plugin 2.0.0-alpha5 I get the following error: >>>> >>>> Error installing split apks: com.android.ddmlib.InstallException: >>>> Failed to finalize session : INSTALL_FAILED_INVALID_APK: Split >>>> lib_dependencies_7ec239608d467565bc6f479202ec42f20ec3b5fa was defined >>>> multiple times. >>>> >>>> The command that it tries to run is: >>>> >>>> $ adb install-multiple -r >>>> /Users/solcott/projects/android/android-app/build/outputs/apk/MyAndroidApp-lollipopDev-debug.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/dependencies_7ec239608d467565bc6f479202ec42f20ec3b5fa.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/dependencies_7ec239608d467565bc6f479202ec42f20ec3b5fa.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_0_0cc50a6f09677ee17ae03076f74b5378d698b820.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_1_8f7938e2d457b2e80a46c8318ca27d1f21833b47.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_2_b6a4ead236c2238c2df0bf3a60d031719554f1b6.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_3_081525630b51fd597d92beb7c11f813f462516da.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_4_7bf5fecc821c58ed781936ffa65958e07e1f495e.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_5_8efd1b37394115acaa167d5b063b120ae6a91714.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_6_0252cd7de53d4a6aa6219f202c42ccbc07fea3f6.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_7_3df5da96a862e62322f85d5a37f7d34d6766475e.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_8_c795dbebbf9488ca7cb26c8735a9a968645a57a4.apk >>>> >>>> /Users/solcott/projects/android/android-app/build/intermediates/split-apk/lollipopDev/debug/slice_9_11956eb06e2a19818f979975882b6aeb649e114c.apk >>>> >>>> >>>> It definitely is being defined twice in the command. Also I also >>>> noticed that every time I hit the run button in AS it does a clean. Is it >>>> just caused by the previous run not being successful? >>>> >>> >> Yes, when you press "Run", the IDE checks whether the build on the device >> matches what is on disk. It does a clean if they don't match. If you see >> that it does a clean otherwise, please file a bug at b.android.com and >> include your idea.log file (Help | Show Log in Files). >> >> >>> >>>> Thanks, >>>> >>>> Scott >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "adt-dev" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to adt-dev+u...@googlegroups.com <javascript:>. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "adt-dev" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to adt-dev+u...@googlegroups.com <javascript:>. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to adt-dev+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.