Android Material and appcompat Manifest merger failed in react-native or ExpoKit

前端 未结 13 1332
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-15 16:07

I updated \'android.support:appcompat-v7\' to 28.0.0.

But it brought an error from the build.

Attribute application@appComponentFactory          


        
13条回答
  •  心在旅途
    2020-12-15 16:34

    The root cause is related migration to Androidx, google play service updated to androidX Thanks to MR03web This problem belongs to react-native-device-info? best option is to upgrade react-native-device-info using

    yarn upgrade react-native-device-info@2.1.2
    cd android && gradlew clean
    react-native run-android
    

    or if you don't want to upgrade you should exclude com.google.android.gms from react-native-device-info like this. Thanks

    implementation(project(":react-native-device-info"),  {
      exclude group: "com.google.android.gms"
    })
    implementation "com.google.android.gms:play-services-gcm:16.0.0"
    

提交回复
热议问题