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

后端 未结 17 2333
[愿得一人]
[愿得一人] 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:20

    Got same error a couple of days back, seems you've got to enable multidex to true and delete the build folder.

    Go to android/app/build.gradle and add the line multiDexEnabled true and set minSdkVersion to 21 inside defaultConfig like this

    ...
    android{
      ...
      defaultConfig {
        ...
        minSdkVersion 21
        multiDexEnabled true
      }
      ...
    }
    ...
    
    

    You can check this thread out on react-native

    https://github.com/oney/react-native-gcm-android/issues/32

提交回复
热议问题