I am trying to install react-native-maps to my react-native app. I've followed instructions from official website: https://github.com/react-native-community/react-native-maps/blob/master/docs/installation.md It's not linking with react-native link react-native-maps, So i tried to link it manually as mentioned there with step by step. But after it, It's giving me the same error in cmd. My app is not running now. And when i unlink maps from my app then my app runs fine. It's been a week i didn't get any solution from anyone. Is there anyone who can help?

here is what I've added to link maps in my app:


include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')


dependencies {
    implementation project(':react-native-payments')
    implementation project(':@react-native-community_async-storage')
    implementation project(':react-native-linear-gradient')
    implementation project(':react-native-gesture-handler')
    implementation project(':react-native-vector-icons')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation "com.facebook.react:react-native:+"  // From node_modules
    compile project(':tipsi-stripe')
    implementation project(':react-native-maps')


buildscript {
    ext {
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        buildToolsVersion   = "26.0.2"
        supportLibVersion = "28.0.0"
        googlePlayServicesVersion = "16.1.0"
        androidMapsUtilsVersion = "0.5+"
    repositories {
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.1'

allprojects {
    repositories {
        maven {
            url "$rootDir/../node_modules/react-native/android"
        maven { url "https://jitpack.io" }




import com.airbnb.android.react.maps.MapsPackage;
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new ReactNativePaymentsPackage(),
            new StripeReactPackage(),
            new AsyncStoragePackage(),
            new LinearGradientPackage(),
            new RNGestureHandlerPackage(),
            new VectorIconsPackage(),
            new MapsPackage()

And here is the error that i am getting while running app after linking maps to my app:

> Task :app:transformClassesWithDexBuilderForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\zains\.gradle\caches\transforms-1\files-1.1\firebase-analytics-impl-11.8.0.aar\5f122df5deada8f908914f5bd04e05ad\jars\classes.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

117 actionable tasks: 1 executed, 116 up-to-date
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.

Click here to see the screenshot of the error

Can anyone help me to solve this issue please?

0 Answers