将插件“ firebase_messaging”添加到pubspec.yaml时,出现以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':firebase_core:compileDebugAidl'.
> The library com.google.firebase:firebase-iid is being requested by various other libraries at [[20.0.0,20.0.0]], but resolves to 17.1.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
我试图更改某些版本的插件,但没有任何改变。
这是我的pubspec.yaml依赖项:
dependencies:
flutter:
sdk: flutter
firebase_core: ^0.4.0
firebase_auth: ^0.14.0+5
cloud_firestore: ^0.12.5
firebase_messaging: ^5.0.2
cupertino_icons: ^0.1.2
scoped_model: ^1.0.1
circular_check_box: ^1.0.1
photo_view: ^0.5.0
dio: ^2.1.16
fit_image: ^0.1.2
http: ^0.12.0+1
global_configuration: ^0.1.4
shared_preferences: ^0.5.3
validators: ^2.0.0
rxdart: ^0.21.0
path_provider: ^0.5.0
camera: ^0.4.3
image_picker: ^0.5.4
html: ^0.14.0
bloc_provider: ^0.6.0
flutter_bloc: ^0.12.0
bloc: ^0.12.0
google_sign_in: ^4.0.7
flutter_facebook_login: ^2.0.0
flutter_localizations:
sdk: flutter
扑打医生:
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15 19A602, locale
en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.39.2)
[✓] Connected device (2 available)
• No issues found!
答案 0 :(得分:0)
您的网络可能会限制您,请尝试连接到另一个网络。