Anyone else come across duplicate classes in AGP 7...
# android-studio
p
Anyone else come across duplicate classes in AGP 7.0.0-alpha*? Trying to update from 4.2.0-canary16 and seeing this:
Copy code
* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
   > There was a failure while executing work items
      > A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction
         > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
           Learn how to resolve the issue at <https://developer.android.com/studio/build/dependencies#duplicate_classes>.
           Type androidx.appcompat.app.ActionBar$DisplayOptions is defined multiple times: /Users/me/.gradle/caches/transforms-3/5b463e48b402d27aed138c54bc8a66a7/transformed/appcompat-1.2.0-runtime/classes.dex, /Users/me/.gradle/caches/transforms-3/895653f853b6633ef5716e12eb9afef8/transformed/appcompat-1.2.0-runtime/classes.dex
Somewhat surprising to me, both files have the same SHA-256 hash. Feels like a possible bug:
Copy code
ad234809ad03f068ec4c4f2f66b74609f617a5c98c3be440f23ceddaca0f4d17  /Users/me/.gradle/caches/transforms-3/5b463e48b402d27aed138c54bc8a66a7/transformed/appcompat-1.2.0-runtime/classes.dex

ad234809ad03f068ec4c4f2f66b74609f617a5c98c3be440f23ceddaca0f4d17  /Users/me/.gradle/caches/transforms-3/895653f853b6633ef5716e12eb9afef8/transformed/appcompat-1.2.0-runtime/classes.dex
Currently trying with AGP 7.0.0-alpha08 due to issue 182468430. This is in an app with ~50 gradle modules, with parallel compilation enabled.