I updated \'android.support:appcompat-v7\' to 28.0.0
.
But it brought an error from the build.
Attribute application@appComponentFactory
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"