I have upgraded my Expo project to version 51 and now am getting an error when creating an aab build for the Play Store. It is as follows:
FAILURE:
Build failed with an exception.
- What went wrong:
Execution failed for task ‘:react-native-google-mobile-ads:compileReleaseKotlin’.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details….
I’ve tried re-installing moblie ads by running npm install –save react-native-google-mobile-ads and clearing the cache but this has not worked. How can I fix this error?
2
Answers
This solved it: npm install react-native-google-mobile-ads@latest
Did You solved that just by Doing:
npm install react-native-google-mobile-ads@lates
?I am digging into this since a week, I am on Expo 51 "react-native-google-mobile-ads": "^14.2.1",
ios successfully build ease for development, But android fails with :
Any thing can help?
Thanks