I didn't have any issues building a development version of the app using expo. While running npx expo run:android
I encountered an issue that something like this: "Could not find maven() for arguments ....".
The issue seems to be related to @rnmapbox/maps
.
To resolve the issue make sure to add the following maven configs inside repositories in android/build.gradle
.
repositories {
maven {
url 'https://maven.google.com/'
}
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication { basic(BasicAuthentication) }
credentials {
username = 'mapbox'
password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: ""
}
}
}
Versions:
Managed, config plugins + expo-dev-client
{
// ...
"expo": "~47.0.8",
"react-native": "0.70.5",
// ...
}
References:
Top comments (0)