我正在尝试为Flutter做一个推送通知演示应用程序,并且我试图遵循一个教程。在为Firebase Cloud Messaging添加依赖项后,我无法为android构建。
以下依赖项已添加到android / app / build.gradle
dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:17.0.1'
implementation 'com.google.firebase:firebase-iid:17.1.1'
implementation 'com.google.firebase:firebase-messaging:17.5.0'
implementation 'com.google.firebase:firebase-config:16.4.0'
implementation 'com.google.firebase:firebase-perf:16.2.4'
implementation 'com.google.firebase:firebase-auth:16.2.0'
}
在pubspec.yaml中添加了以下依赖项
dependencies:
firebase_core: ^0.4.0
firebase_auth: ^0.11.1+6
cloud_firestore: ^0.12.5
firebase_messaging: ^5.0.2
这里是error log