Multiple dex files define Lcom/google/android/gms/internal/zzau

前端 未结 14 1260
[愿得一人]
[愿得一人] 2020-11-29 10:55

I get the error com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzau; when i run my app The gradle files are

ap

14条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 11:39

    If this is happening with react-native-device-info, you can only change from:

    compile(project(':react-native-device-info'))
    

    to

    compile(project(':react-native-device-info')) {
      exclude group: 'com.google.android.gms'
    }
    

    As described here: https://github.com/rebeccahughes/react-native-device-info/blob/81b0c20fab8a10ccf0341dbd6710d7a5915b06a6/README.md#troubleshooting

提交回复
热议问题