Android setup
01 Sept 2026 · Field Track 360
RN templates use dependencyResolutionManagement with FAIL_ON_PROJECT_REPOS, so a library cannot declare a repository for you. This is a required host step.
``` dependencyResolutionManagement { repositories { google() mavenCentral() maven { url 'https://jitpack.io' credentials { username = providers.gradleProperty('authToken').getOrElse('') } } } } ```
The authToken goes in your user-level ~/.gradle/gradle.properties, never the project's - the project file is committed by default and the token grants read access to private packages.
Then set minSdkVersion 26 and compileSdkVersion 37, and add a Google Maps API key to AndroidManifest.xml - both map components render through Google Maps.