React Native: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'

后端 未结 17 2365
[愿得一人]
[愿得一人] 2020-12-30 01:15

I\'ve tried gradlew clean and every other solution available here and on GitHub but the error doesn\'t match and solution doesn\'t work

Error on cmd A

17条回答
  •  醉话见心
    2020-12-30 01:42

    Open the /android/app/build.gradle file.

    Under dependencies we need to add the module, and then enable it within defaultConfig

    android {
        defaultConfig {
            // ...
            multiDexEnabled true
        }
        // ...
    }
    
    dependencies {
      implementation 'com.android.support:multidex:1.0.3'
    }
    

提交回复
热议问题