skip to Main Content

I’m trying to build a React Native application using Expo and rnmapbox/maps module, which includes some custom native code.

Up until now, I could build the application without any problems, for Android at least, which is my target platform. But suddenly, it stopped working and the following error log is displayed:

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin class 'org.gradle.api.plugins.BasePlugin'.
   > Could not find method maven() for arguments [build_1quotit9ccucu377qnhf7kv5h$_run_closure1$_closure3$_closure5@4a87f9f7] on configuration ':app:archives' of type org.gradle.api.in
ternal.artifacts.configurations.DefaultConfiguration.

What is the problem and how can I possibly fix it?

2

Answers


  1. Chosen as BEST ANSWER

    I added the "image": "latest" field to eas.json configuration and it seemed to fix the problem.

    Apparently, there was a bug with older versions.


  2. The problem appears to be with Mapbox. We are experiencing the same error as you on our Android builds under eas build. We just removed the rnmapbox/maps dependency and commented out all the relevant code and our builds are passing.

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