question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"app-debug.apk' already contains entry 'AndroidManifest.xml', cannot overwrite"

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
changusmccommented, Dec 15, 2021

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.

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.

0reactions
hvissercommented, Dec 15, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found