Hello Guys, How are you all? Hope You all Are Fine. Today When I run my react-native project I am facing following error Execution failed for task ‘:app:checkDEVDebugAarMetadata’. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction in react-native. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How Execution failed for task ':app:checkDEVDebugAarMetadata'. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction Error Occurs ?
- How To Solve Execution failed for task ':app:checkDEVDebugAarMetadata'. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction Error ?
- Solution 1: Add force 'androidx.browser:browser:1.2.0' in build.gradle
- Solution 2: Just add this line in your build.gradle
- Summary
How Execution failed for task ‘:app:checkDEVDebugAarMetadata’. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction Error Occurs ?
Today When I run my react-native project I am facing following error.
Execution failed for task ':app:checkDEVDebugAarMetadata'.
A failure occurred while executing
com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.browser:browser:1.4.0-alpha01.
AAR metadata file:
How To Solve Execution failed for task ‘:app:checkDEVDebugAarMetadata’. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction Error ?
- How To Solve Execution failed for task ‘:app:checkDEVDebugAarMetadata’. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction Error ?
To Solve Execution failed for task ‘:app:checkDEVDebugAarMetadata’. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction Error This is because of there is an recent update to the androidx.browser as of September 15, 2021 that require minSDK 31. To solve this error just add below code in your build.gradle file. 1. Open your android/app/build.gradle file. 2. Paste this code in your build.gradle file.
- Execution failed for task ‘:app:checkDEVDebugAarMetadata’. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
To Solve Execution failed for task ‘:app:checkDEVDebugAarMetadata’. A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction Error This is because of there is an recent update to the androidx.browser as of September 15, 2021 that require minSDK 31. To solve this error just add below code in your build.gradle file. 1. Open your android/app/build.gradle file. 2. Paste this code in your build.gradle file.
Solution 1: Add force ‘androidx.browser:browser:1.2.0’ in build.gradle
This is because of there is an recent update to the androidx.browser as of September 15, 2021 that require minSDK 31. To solve this error just add below code in your build.gradle file.
1. Open your android/app/build.gradle
file.
2. Paste this code in your build.gradle file.
android{
// Add these
configurations.all {
resolutionStrategy {
force 'androidx.browser:browser:1.2.0'
}
}
}
Solution 2: Just add this line in your build.gradle
1. Open your android/app/build.gradle
file.
2. Paste this code in your build.gradle file.
dependencies{
...other dependencies,
implementation ("androidx.browser:browser:1.3.0"){
force = true
}
}
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read