错误: 来自[androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86的属性application @ appComponentFactory value =(androidx.core.app.CoreComponentFactory) 也出现在[com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value =(android.support.v4.app.CoreComponentFactory)。 建议:在AndroidManifest.xml:22:5-147:19的元素上添加'tools:replace =“ android:appComponentFactory”'以进行覆盖。
我不想迁移到androidx,但是在依赖项中添加firebase时出现此错误
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation "com.google.firebase:firebase-messaging:17.3.0"
googlePlayServicesVersion = "16.0.0"
firebaseVersion = "17.0.0"
compileSdkVersion = 26 // default: 23
buildToolsVersion = "23.0.1" // default: "23.0.1"
targetSdkVersion = 26 // default: 23
supportLibVersion = "23.1.1" // default: 23.1.1