Android E/FirebaseInstanceId:令牌检索失败:无效\u发送方

Android E/FirebaseInstanceId:令牌检索失败:无效\u发送方,android,firebase,google-cloud-firestore,Android,Firebase,Google Cloud Firestore,我可以更新到firebase,所以我的连接,我认为我的连接没有问题 但我无法从firestore检索数据 依赖项: implementation 'com.google.firebase:firebase-messaging:11.6.2' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementat

我可以更新到firebase,所以我的连接,我认为我的连接没有问题 但我无法从firestore检索数据

依赖项:

implementation 'com.google.firebase:firebase-messaging:11.6.2'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-firestore:17.0.4'
implementation 'com.google.firebase:firebase-database:16.0.4'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
implementation 'com.google.api-client:google-api-client:1.25.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.material:material:1.0.0'
implementation "com.facebook.android:facebook-android-sdk:4.35.0"
代码:

进入我的依赖

但同步失败,然后构建显示

ERROR: Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.google.firebase:firebase-messaging:20.1.0] C:\Users\jack0\.gradle\caches\transforms-2\files-2.1\e40595c3c511248facbf0e003354fb90\jetified-firebase-messaging-20.1.0\AndroidManifest.xml as the library might be using APIs not available in 15
Suggestion: use a compatible library with a minSdk of at most 15,
    or increase this project's minSdk version to at least 16,
    or use tools:overrideLibrary="com.google.firebase.messaging" to force usage (may lead to runtime failures)

FirebaseInstancedService
已弃用。改用
FirebaseMessagingService
。您应该使用最新的消息依赖项,如
com.google.firebase:firebase消息:20.1.0
how?我昨天用谷歌搜索了一下,但还是失败了
    implementation 'com.google.firebase:firebase-messaging:20.1.0'
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.google.firebase:firebase-messaging:20.1.0] C:\Users\jack0\.gradle\caches\transforms-2\files-2.1\e40595c3c511248facbf0e003354fb90\jetified-firebase-messaging-20.1.0\AndroidManifest.xml as the library might be using APIs not available in 15
Suggestion: use a compatible library with a minSdk of at most 15,
    or increase this project's minSdk version to at least 16,
    or use tools:overrideLibrary="com.google.firebase.messaging" to force usage (may lead to runtime failures)