Firebase DynamicLinks抛出“ getServiceInstance失败!”

时间:2019-05-17 02:51:59

标签: android firebase firebase-dynamic-links

我使用Firebase跟踪多种事件,但是我根本无法跟踪Android上的dynamicLinks。
当我单击动态链接时,该链接本身似乎可以工作(直接打开应用程序的页面),但是未跟踪dynamic_link_app_opendynamic_link_first_open

我已经根据https://firebase.google.com/docs/dynamic-links/android/receive?hl=en实现了动态链接接收部分。但是,当我阅读日志时,发现FirebaseDynamicLinks.getInstance(this)不起作用,并将getServiceInstance failed!写到日志中。
而且,在刚构建并启动该应用程序时,似乎会引发此错误。

我已经尝试升级有关Firebase的所有依赖关系并清理项目。我还能做其他事情吗?

基本上我是根据Firebase文档实现的,这是应用程序build.gradle的依赖项:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:appcompat-v7:26.+'
    implementation 'com.android.support:customtabs:26.+'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.google.firebase:firebase-core:16.0.8'
    implementation 'com.google.firebase:firebase-messaging:17.4.0'
    implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
    implementation 'com.android.support:design:26.+'
    testImplementation 'junit:junit:4.12'
}

0 个答案:

没有答案