我正试图将我的颤振项目更新为颤振稳定2.0.3,但出现了错误:
因为sdk的每个版本的flutter_driver都依赖于网络驱动程序2.1.2,它依赖于存档
有人知道如何解决这个问题吗?我试图导入webdriver版本为^3.0.0的软件包,但在尝试运行应用程序时,出现了错误:
由于sdk中的每个版本的flatter\u驱动程序都依赖于webdriver 2.1.2,而应用程序依赖于webdriver^3.0.0,因此禁止使用sdk中的flatter\u驱动程序。所以,由于应用程序依赖于sdk中的flatter\u驱动程序,版本求解失败。在应用程序中运行“flatter pub get”。。。pub get失败(1;因此,由于应用程序依赖于sdk中的任何flatter\u驱动程序,版本求解失败。)
这是我的出版物:
environment:
sdk: ">=2.5.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
auto_size_text: ^2.1.0 #https://pub.dev/packages/auto_size_text
auto_orientation: ^1.0.5 #https://pub.dev/packages/auto_orientation
cached_network_image: ^2.0.0 #https://pub.dartlang.org/packages/cached_network_image#-installing-tab-
carousel_slider: ^1.3.0 #https://github.com/serenader2014/flutter_carousel_slider
connectivity: ^3.0.3 #https://pub.dev/packages/connectivity
cpf_cnpj_validator: ^1.0.5 #https://github.com/leonardocaldas/flutter-cpf-cnpj-validator
dots_indicator: ^1.0.0 #https://pub.dev/packages/dots_indicator
image_picker: ^0.6.0+15 #https://pub.dartlang.org/packages/image_picker
flutter_cache_manager: ^3.0.1 #https://pub.dev/packages/flutter_cache_manager
flutter_full_pdf_viewer: ^1.0.6 #https://pub.dev/packages/flutter_full_pdf_viewer
flutter_local_notifications: ^5.0.0 #https://pub.dev/packages/flutter_local_notifications
flutter_masked_text: ^0.8.0 #https://pub.dartlang.org/packages/flutter_masked_text
flutter_slidable: ^0.5.4 #https://pub.dev/packages/flutter_slidable
flutter_svg: ^0.18.0 #https://pub.dartlang.org/packages/flutter_svg#-installing-tab-
flushbar: ^1.10.2 #https://pub.dev/packages/flushbar
google_maps_flutter: ^0.5.20+6 #https://pub.dev/packages/google_maps_flutter
http: ^0.13.0 #https://pub.dev/packages/http
package_info: ^0.4.0+6 #https://pub.dev/packages/package_info
path_provider: ^2.0.1 #https://pub.dev/packages/path_provider
photo_view: ^0.4.0 #https://pub.dartlang.org/packages/photo_view#-installing-tab-
provider: ^4.0.1 #https://pub.dev/packages/provider
rate_my_app: ^0.7.2 #https://pub.dev/packages/rate_my_app
rxdart: ^0.26.0 #https://pub.dartlang.org/packages/rxdart
sendgrid_mailer: ^0.1.2 #https://pub.dev/packages/sendgrid_mailer
share_extend: ^1.0.9 #https://pub.dev/packages/share_extend
store_redirect: ^1.0.2 #https://pub.dev/packages/store_redirect
url_launcher: ^5.2.5 #https://pub.dev/packages/url_launcher
webdriver: ^3.0.0
# Firebase packages
cloud_firestore: ^1.0.1
firebase_core: ^1.0.1
firebase_auth: ^1.0.1
firebase_analytics: ^7.1.1
cloud_functions: ^1.0.0
firebase_storage: ^8.0.0
firebase_crashlytics: ^1.0.0 #https://pub.dev/packages/firebase_crashlytics
firebase_messaging: ^9.0.0 #https://pub.dev/packages/firebase_messaging
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
dev_dependencies:
test: ^1.5.1
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
pedantic: null
我找到了一个解决方案,为了解决这个问题,我必须覆盖依赖项,如下所示:
dependency_overrides:
archive: ^3.1.2
crypto: ^3.0.0
xml: ^5.0.2
是否有任何方法可以从代码中删除空安全检查,或者我现在被迫进行迁移?(工作量很大)。
我想使用带有Flutter的dart SDK>=2.2.0。但我目前使用的Flutter版本是2.1.2 我尝试独立安装2.2.0版本,并成功了: 然而,Flutter并没有使用你在上面看到的这个版本。我试图用独立安装的版本替换flutter使用的()文件,但是当我尝试运行flutter之后出现快照问题,因此我将原来的文件夹放回flutter目录中。 你有什么想法我该怎么更新它吗? PS:我最近(
flutter似乎在空安全检查和非空安全检查之间切换,导致了几十个问题。 空错误检查返回???
我正在开发一个使用的Flutter应用程序。 我声明如下所示: 我的小部件中显示,但当我点击它时,键盘会自动关闭,控制台中会出现以下错误 我使用IntelliJ中的Flutter插件在Android(三星Galaxy Grand Prime,Android 5.1)上运行。 我该怎么解决这个问题呢? 编辑:正如在这个答案上看到的(android-span_exclusive_exclusive s
在更新到飘飘 2.8 之前 更新到飘飘 2.8 后: 如何更新minSdkVersion更高?我在任何地方都找不到目标“flutter.minSdkVersion”变量。
我用grpc创建了颤振项目,但在尝试从proto生成文件dart时出错。我将proto文件放在lib/protos(rewards.proto)中,然后放在终端put命令“protoc--dart\u out=grpc:lib/src-Iprotos protos/rewards”中。proto' 我的接收器错误是这样的——dart_out:proc-gen-dart: ═х єфрхЄё 我做错