-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':app:checkDebugAarMetadata'. #1318
Execution failed for task ':app:checkDebugAarMetadata'. #1318
Comments
@sumanbhattarai on android/build.gradle change: compileSdkVersion = 31
|
I can confirm @ROG3R-DEV solution works - I was running into the exact same problem, and updating |
I'm also getting this issue, 4.3.1 builds fine (but ID verification is not working). 4.3.2 is where this issue is introduced. Does anyone have an alternative workaround so I can use ID verification? |
If you don't want to upgrade to sdk 31, add in
|
For some background, we made this change for apps that set their @Ricool06, thanks for bringing up a good point about the managed workflow as it appears the latest Expo SDK targets Android 30. |
I can't upgrade to sdk 31 without ejecting, which I also cannot do in my situation. @nan-li glad to be helping. 😊 Is there a resolution or workaround to this we can think of? |
Having the same problem with onesignal 4.3.3 :( I am using expo unimodules and when I upgraded to 31 the expo packages can not run. Update: By using this, I could run the app. However not sure if its a good idea.
|
same issue, glad it is identified why it happens. I downgraded for now, but hope it will be addressed when expo SDK 44 comes out... |
This issue has been addressed in OneSignal-Gradle-Plugin 0.14.0. This version should automatically be picked up if you do a clean build. |
@jkasten2 , I am doing ./gradlw clean and trying back again. Still getting the same error somehow? Am I doing it right? |
So for anyone still struggling with this who can't eject or update to the version @jkasten2 mentioned, here is a workaround. const newResolutionStrategyGradle = `
configurations.all {
resolutionStrategy {
force 'androidx.work:work-runtime:2.6.0'
}
}`;
const withWorkingWorkRuntimeVersion = (config, _props) => {
return withAppBuildGradle(config, newConfig => {
newConfig.modResults.contents = `${newResolutionStrategyGradle.trimStart()}\n\n${
newConfig.modResults.contents
}`;
return newConfig;
});
}; then return your config where you usually would with return withWorkingWorkRuntimeVersion(config); EDIT: this assumes you are using expo! |
The available version list of the
I am not sure exactly when Gradle's plugin portal will refresh the latest version list but I would expect in the next 24 hours. |
this works for me!! |
Thank you so much @Summys! This is just what I needed to fix my problem. |
worked for me buildToolsVersion = "30.0.2" rn: 0.66.4 |
@Summys Thank you You solved my problem
|
worked for me + buildToolsVersion = "29.0.3"
|
I just had the same issue, so its better to go to build.gradle and check targetSDK and compileSDK then we will notice a kind of warning asking us to update...we are 13th DECEMBER 2022 I update mine to 33 which were from the beginning 32. |
yeah targetSDK and compileSDK must be upgraded(id did it to 33) |
FAILURE: Build failed with an exception.
Execution failed for task ':app:checkDebugAarMetadata'.
lease, org.gradle.usage=java-runtime}.
"react-native": "^0.76.2" |
Description:
I created a new react native application and installed react-native-one-signal. I am getting a build error on android as soon as I installed react-native-one-signal.
I am getting following error while building an app on android:
Environment
Steps to Reproduce Issue:
npx react-native init DempApp --template react-native-template-typescript
.yarn add react-native-onesignal
npx react-native run-android
The text was updated successfully, but these errors were encountered: