本文介绍了Firebase InstanceId:绑定到服务失败:Kotlin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序成功停止运行,但在调试中收到此错误消息. FirebaseInstanceId:绑定到服务失败

App successfully lanches but get this error message in debugging. FirebaseInstanceId: binding to the service failed

App Build Gradle:

App Build Gradle:

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
    applicationId ""
    minSdkVersion 16
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    multiDexEnabled true // enable mun

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

Android清单:

Android manifest:

 <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning">
    <activity android:name=".FilterPage"></activity>
    <activity android:name=".filterdashboard" />
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

推荐答案

我已添加

<uses-permission android:name="android.permission.INTERNET"/>

在清单文件中,并且摆脱了 Firebase InstanceId:绑定到服务失败.希望对您有所帮助.

In my manifest file and got rid of Firebase InstanceId: binding to the service failed. Hope it will help.

这篇关于Firebase InstanceId:绑定到服务失败:Kotlin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-16 20:06