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

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

    This answer should help most people. If it still does not then the way to solve this (which is not that good) is that you open the android project in android studio. That should fetch all the gradle files. On the right side the view should be android.

    From here just check each gradle build file for a + sign ahead of google play services or firebase services or any such library. This has also been explained in this answer.

    After which you either change it like explained in the answer above. like so.

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

    Or you provide a variable if the library is using one or as a last resort change it there itself.

    The reason I put it here is so that any newbie who is sick of this error which randomly appeared out of nowhere all of a sudden can solve it effectively and not...die. lol.

提交回复
热议问题