I've been using android studio for a few weeks. I started having issues 
deploying my project.
Failure [INSTALL_FAILED_DEXOPT]

I tracked it down through a few recent posts and have everything updated to 
the latest (gradle 2.10; classpath 
'com.android.tools.build:gradle:2.0.0-alpha6' )... previously I was using 
com.android.tools.build:gradle:2.0.0-alpha3 .. but now I get "plugin is too 
old update to a more recent...." 

If I select Build->Build APK I get a app-debug.apk that can install, and it 
contains a classes.dex; if I click the debug button, and allow it to build 
and deploy that way, it generates a app-debug.apk that doesn't have a 
classes.dex and does not install.

I noticed in a diff between the log for Build APK and the Debug ...

(fails)
:app:coldswapKickerDebug
:app:fastDeployDebugExtractor UP-TO-DATE
:app:generateDebugInstantRunAppInfo UP-TO-DATE
:app:transformClassesWithInstantRunSlicerForDebug UP-TO-DATE

(works)
:app:fastDeployDebugExtractor UP-TO-DATE
:app:generateDebugInstantRunAppInfo UP-TO-DATE

I saw in http://tools.android.com/tech-docs/new-build-system
*2.0.0-alpha5 (2016/1/14)*


   - 
   
   Instant Run 
   - 
      
      *Implemented cold start (when code change cannot be applied with hot 
      swap) - on pre-lollipop releases with Dalvik, restart.dex are produces 
each 
      time a cold start is necessary - on lollipop, leverage multi dexes to 
slice 
      applications in multiple dexes and rebuild/redeliver minimum set of dexes 
      necessary. - on marshmallow, leverage split APK to deliver multi dexes. *
      

May be related?

I tried to set back to alpha3 but then it fails to build with the plugin 
out of date error...


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/7cbbdd87-44dd-4eb3-b34e-1e987456b9b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to