skip to Main Content

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


  1. Chosen as BEST ANSWER

    This solved it: npm install react-native-google-mobile-ads@latest


  2. 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 :

    Configure project :react-native-google-mobile-ads
    :react-native-google-mobile-ads package.json found at /home/nimer/apps/alarab3/node_modules/react-native-google-mobile-ads/package.json
    Error: /home/nimer/apps/alarab3/android/gradlew app:assembleDebug -x lint -x test –configure-on-demand –build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,x86,arm64-v8a,armeabi-v7a exited with non-zero code: 1

    Any thing can help?
    Thanks

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search