"app-debug.apk' already contains entry 'AndroidManifest.xml', cannot overwrite"
See original GitHub issueI’m getting this error when updating from 5.0.0 to 5.1.0:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> Zip file '[..]\app-debug.apk' already contains entry 'AndroidManifest.xml', cannot overwrite
I get this both on my local machine and CI, even after clearing all the gradle caches. I looked through the changes from 5.0.0-5.1.0 (https://github.com/dropbox/dropbox-sdk-java/compare/v5.0.0...v5.1.0) but I don’t see what could have caused this. Running with --stacktrace
or --scan
doesn’t provide more details.
My project is using Gradle 7.3.1. Compile SDK & target SDK = 31. I do have sourceCompatibility
and targetCompatibility
set to VERSION_1_8
, but changing it to VERSION_11
like in the library doesn’t fix it.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
After upgraded to androidX Zip file '...' already contains entry ...
After upgraded to androidX Zip file '...' already contains entry 'AndroidManifest.xml', cannot overwrite Error while build · Ask Question. Asked ...
Read more >App-debug.apk' already contains entry 'AndroidManifest.xml ...
Hi, I'm a newbie at Kotlin and android studio. I'm trying to build my own common library which want to use in my...
Read more >237809605 - Issue Tracker
app-debug.apk already contains entry 'assets/[path to png file], cannot overwrite ... useNewApkCreator=false in the gradle.properties file.
Read more >Manage manifest files - Android Developers
Merge multiple manifest files. Your APK or Android App Bundle file can contain just one AndroidManifest.xml file, but your Android Studio ...
Read more >app-debug.apk' already contains entry 'androidmanifest ... - 掘金
app-debug.apk' already contains entry 'androidmanifest.xml' cannot overwrite ... Flutter打包apk报错:Your app isn't using AndroidX. 今天在学习Flutter开发 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As soon as #370 is merged, it will create a SNAPSHOT in Maven, you can use that until we cut a release.
Again, thanks for flagging this and apologies that our CI didn’t catch this. Our integration tests will catch this in the future.
That will still pull in all of the other extra junk like appengine and servlet, but agree that excluding all of those would be a better workaround.