Reputation: 11519
After updating from com.android.tools.build:gradle:2.0.0-alpha3
to com.android.tools.build:gradle:2.0.0-alpha6
I got this error:
Error:Execution failed for task ':MyApp:transformClassesWithMultidexlistForDebug'.
> java.util.NoSuchElementException (no error message)
I have multiDexEnabled true
, which worked so far (up to alpha3
); if I remove it I get another error:
Error:A problem was found with the configuration of task ':MyApp:zipalignDebug'.
> File '/Users/myuser/dev/projects/my-app/MyApp/build/outputs/apk/MyApp-debug-unaligned.apk' specified for property 'inputFile' does not exist.
Any clue?
Note: after updating to alpha6
I also updated distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
in gradle-wrapper.properties
and did a project clean + rebuild.
Upvotes: 4
Views: 1804
Reputation: 11519
I'll add the answer, since it seems to work for some people.
I discovered that my Android Studio 2.0 Preview was outdated (I was in stable channel). I updated it to the latest version (canary channel). At the moment is the Preview 6.
I also had to disable "instant run" due to other problem I had after updating Android Studio.
Hope it helps!
Upvotes: 1