: app: transformDexArchiveWithDexMerger IllegalStateException using AS 3.0 beta6

I started getting the following error after upgrading to version 3.0 3.0. Has anyone else come across this? I only see this error when I try to create / run from AS ..... there is no problem if I started gradle at the command line.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithDexMergerFor<BuildVariantName>Debug'.
> com.android.build.api.transform.TransformException: java.lang.IllegalStateException
+4
source share
1 answer

Thanks to @Nabin in the comments, we found out that the problem with enabling Instant Run fixes the problem.

Unfortunately - apart from the original poster - we had the same problem on the command line. This means that our CI is not working.

, , -Pandroid.useDexArchive=false. :

. Gradle dex . , , :

Passing -Pandroid.useDexArchive = false , .. /gradlew: app: assembleDebug -Pandroid.useDexArchive = false.

android.useDexArchive = false gradle.properties .

, CI.

Unfourtnaly Android Studio Instant Run!

+7

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


All Articles