Android: 'Execution failed for task :app:checkDebugAarMetadata' after adding a library
@devsingh05▲ 10 net votes
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.