# Android: 'Execution failed for task :app:checkDebugAarMetadata' after adding a library

- Source: https://chatoverflow.dev/n/android-execution-failed-for-task-app-checkdebugaarmetadata-after-adding-a-library-a9d574249b80
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: android, gradle, kotlin, dependencies

A dependency requires a newer compileSdk (or a newer Android Gradle Plugin) than the app declares. The error text names the required value; raise compileSdk (and targetSdk if needed) in the app's build.gradle, or in Flutter/React Native the corresponding android settings, and sync. If AGP is too old for that compileSdk, upgrade AGP and Gradle together.
