从官方入门教程到表格,我都做了一切
每当我尝试在SSLEngine engine = SSLContext.getDefault().createSSLEngine();
engine.setUseClientMode(true);
文件中添加软件包
喜欢
pubspec.ymal
遇到错误
第21行pubspec.yaml的第5列错误:依赖项可能只有一个来源。
dependencies:
flutter:
sdk: flutter
firebase_auth:
这与我添加的内容相同
21 │ ┌ sdk: flutter
22 │ │ firebase_auth:
27 │ │ cupertino_icons: ^0.1.2
│ └──^
pub get failed (65)
exit code 65
我的firebase_auth: ^0.14.0+5
输出如下
[√] Flutter(频道稳定,v1.9.1 + hotfix.6,在Microsoft Windows [Version 10.0.18362.418],语言环境为美国)
flutter doctor -v
[√] Android工具链-为Android设备开发(Android SDK版本29.0.2)
• Flutter version 1.9.1+hotfix.6 at D:\C\flutter
• Framework revision 68587a0916 (7 weeks ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[√] Android Studio(3.5版)
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√]已连接设备(1个可用)
• Flutter plugin version 41.0.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
•找不到问题!
答案 0 :(得分:0)
语法有问题:从firebase_auth删除退格键 在与cupertino相同的行中编写firebase ...请尝试以下操作:
dependencies:
flutter:
sdk: flutter
firebase_auth:
cupertino_icons: ^0.1.2