Android Studio - transformClassesWithMultidexlistForDebug error

After upgrading from com.android.tools.build:gradle:2.0.0-alpha3to, com.android.tools.build:gradle:2.0.0-alpha6I got this error:

Error:Execution failed for task ':MyApp:transformClassesWithMultidexlistForDebug'.
> java.util.NoSuchElementException (no error message)

I have one multiDexEnabled truethat has worked so far (before alpha3); if I delete 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 upgrading to, alpha6I also updated distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zipin gradle-wrapper.propertiesand ran the clean + rebuild project.

+4
source share
1 answer

I will add an answer as it works for some people.

, Android Studio 2.0 Preview ( ). ( ). Preview 6.

" " - , Android Studio.

, !

+1

Source: https://habr.com/ru/post/1625342/


All Articles