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

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

    I have the same issue. So to make it 'clearer', I did these:

    1. Update to sdk27 (compile and target). minSdk is at 21
    2. Update related goodle-play base/services/maps to 15.0.1 (Depends on your project requirement)
    3. Then: I add multidexEnabled=true in the same section as no (1) above
    4. (Optional) - I had another issue where Gradle couldn't find the play-services version properly: I modified the project build.gradle to search the google maven first before the jcenter()

      maven {
          url 'https://maven.google.com/'
          name 'Google'
      }
      mavenLocal()
      jcenter()
      

提交回复
热议问题