Error building the app bundle Android Origin: On your device OSI layer 7 · Application Last updated 25 Nov 2026

Execution failed for task ':app:bundleRelease'. Error while executing bundletool

Building the Android App Bundle (.aab) failed in the bundle step.

Exact message you may see Execution failed for task bundleReleaseError while executing bundletoolExecution failed for task ':app:bundleRelease'. > A failure occurred while executing com.android.build.gradle.internal.tasks.BundleToolTask
Seen on: Android

Meaning

bundleRelease runs bundletool after R8/resource linking. Look for the root cause lower in the stack: duplicate files, an invalid ABI split, or a corrupt resource.

Common causes

  • Duplicate or invalid native libs
  • Corrupt resource or asset
  • Invalid splits configuration

⚡ Quick fix

  1. Run with --stacktrace and read the root cause
  2. Check packaging { jniLibs } rules
  3. Clean and rebuild

Detailed fix by platform

Shell

  1. ./gradlew :app:bundleRelease --stacktrace --info

How to diagnose

  1. Root cause — first Caused by?
  2. ABI — splits configured?
  3. Clean — done?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

./gradlew: Permission denied — bash: ./gradlew: Permission denied (Android)./gradlew: Permission…2 files found with path META-INF/LICENSE — 2 files found with path 'META-INF/LICENSE.md' from inputs (Android)2 files found with pa…AccessibilityService restricted setting (Android 13) — Restricted setting: For your security, this setting is currently unavailable (Android)AccessibilityService …AdMob: Ad failed to load: ERROR_CODE_NO_FILL (3) — Ad failed to load : 3 / ERROR_CODE_NO_FILL (Android)AdMob: Ad failed to l…Android 15 edge-to-edge: content hidden behind system bars — (behavior) UI overlaps status bar and navigation bar on targetSdk 35 (Android)Android 15 edge-to-ed…Android App Links: autoVerify failed (assetlinks.json) — App link verification failed: Digital Asset Links: http error 404 (Android)Android App Links: au…Android Gradle plugin requires a newer Gradle — The Android Gradle plugin supports only Gradle version 8.x and higher. Current Gradle version is 7.x (Android)Android Gradle plugin…Android resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource link…Error bui…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.