当前位置: 首页 > 知识库问答 >
问题:

在Android应用程序消息传递SDK中添加Firebase后出错

岑鸣
2023-03-14

将Firebase In-App Messaging SDK添加到我的构建后。gradle,在构建我的项目程序类型已经存在:com之后,我一直收到这个错误消息。谷歌。常见的注释。Beta版我已经尝试了这里和这里提出的大多数解决方案,但都不适用于我。

下面是我在项目中使用的依赖项库

  def room_version = "1.1.1"
def supportLibVersion = '28.0.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:support-vector-drawable:28.0.0'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'org.apache.commons:commons-lang3:3.5'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.github.ganfra:material-spinner:2.0.0'
implementation 'com.github.d-max:spots-dialog:0.7@aar'
implementation 'id.zelory:compressor:2.1.0'
implementation 'org.sufficientlysecure:html-textview:3.6'
implementation 'com.github.medyo:android-about-page:1.2.4'


testImplementation 'junit:junit:4.12'
implementation 'com.github.mirrajabi:search-dialog:1.2.3'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
    transitive = true
}
implementation 'com.miguelcatalan:materialsearchview:1.4.0'

//support library
implementation "com.android.support:support-v4:$supportLibVersion"
implementation "com.android.support:appcompat-v7:$supportLibVersion"
implementation "com.android.support:design:$supportLibVersion"
implementation "com.android.support:cardview-v7:$supportLibVersion"
implementation "com.android.support:recyclerview-v7:$supportLibVersion"
implementation "com.android.support:customtabs:$supportLibVersion"

// firebase
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.firebase:firebase-ads:17.1.2'
implementation 'com.google.firebase:firebase-appindexing:17.1.0'
implementation 'com.google.firebase:firebase-config:16.1.2'
implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.4'



// retrofit
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'

//google play services
implementation "com.google.android.gms:play-services-location:16.0.0"
implementation 'com.google.android.gms:play-services-auth:16.0.1'

// room
implementation "android.arch.persistence.room:runtime:$room_version"
kapt "android.arch.persistence.room:compiler:$room_version"

//rx java
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'io.reactivex.rxjava2:rxjava:2.1.10'

//people api
implementation 'com.google.apis:google-api-services-people:v1-rev277-1.23.0'

//expandable layout
implementation 'com.github.aakira:expandable-layout:1.6.0@aar'
implementation 'com.thoughtbot:expandablerecyclerview:1.3'

//FlutterWave RavePay
implementation 'com.github.Flutterwave:rave-android:1.0.25'

//day picker
implementation 'com.github.DavidProdinger:weekdays-selector:1.0.4'

//Facebook SDK
implementation 'com.facebook.android:facebook-android-sdk:4.38.1'
implementation 'com.facebook.android:facebook-core:4.38.1'
implementation 'com.facebook.android:facebook-marketing:4.38.1'
implementation 'com.facebook.android:audience-network-sdk:5.+'

下面是完整的错误日志

共有3个答案

魏烨熠
2023-03-14

如果您有com,请删除。谷歌。firebase:firebase核心库。

根据firebase文件。

不再添加Android库com.google.火基:火基核心。此SDK包括用于Google Analytics的Firebase SDK。现在,要使用Analytics(或任何需要或建议使用Analytics的Firebase产品),您需要明确添加Analytics dependency:com.google.firebase:firebase分析:17.2.0。

汪甫
2023-03-14

从菜单文件中尝试-

殷耀
2023-03-14

您可以使用gradle dependencies打印gradle依赖关系图。检查图表以确定哪些库使用此依赖项com.google.常见的注释。测试。然后可以使用gradleexclude规则来排除罪魁祸首传递依赖项。

 类似资料: