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

前端 未结 13 1297
佛祖请我去吃肉
佛祖请我去吃肉 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:38

    According to @Frank's answer the library used services-gcm:+ as a dependency, and the latest gcm version caused this problem.

    And I had used :react-native-admob in my project. So I just change the following lines in android/app/build.gradle

    From:

    implementation project(':react-native-admob')
    

    TO :

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

提交回复
热议问题