简体   繁体   English

“无法以声音 null 安全运行”尝试将 Google 地图与 Flutter 一起使用

[英]"Cannot run with sound null safety" trying to use Google Maps with Flutter

When I try running Google Maps on Android Studio Emulator I am getting an error message.当我尝试在 Android Studio 模拟器上运行 Google 地图时,我收到一条错误消息。 It does mention some links on where to go on how to solve the problem, but I still don't get it.它确实提到了一些关于如何解决问题的 go 的链接,但我仍然不明白。

The error is:错误是:

***

 **Launching lib\main.dart on Android SDK built for x86 in debug mode...**

***

lib\main.dart:1
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

 - package:google_maps_flutter
 - package:google_maps_flutter_platform_interface

 - package:stream_transform
 - package:plugin_platform_interface

For solutions, see https://dart.dev/go/unsound-null-safety
3

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\14706\Desktop\CODES\Flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1070

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\14706\Desktop\CODES\Flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 52s
Exception: Gradle task assembleDebug failed with exit code 1

***
**Exited (sigterm)**
***

Run this command in the project terminal and then run your app.在项目终端中运行此命令,然后运行您的应用程序。

flutter pub upgrade --major-versions

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法正常运行 null 安全,Flutter - Cannot run with sound null safety, Flutter 无法正常运行 null 安全 - cannot run with sound null safety “无法正常运行 null 安全” Flutter 现有项目? - "Cannot run with sound null safety" Flutter an existing Project? 错误:无法以健全的 null 安全运行,因为以下依赖项不支持 null 安全; 在 flutter - Error: Cannot run with sound null safety, because the following dependencies don't support null safety; in flutter Flutter 不能以空安全运行,因为以下依赖不支持空安全 - Flutter Cannot run with sound null safety, because the following dependencies don't support null safety Flame 0.29.4 不能以声音零安全运行 - Flame 0.29.4 cannot run with sound null safety 火焰错误:无法运行声音 null 安全 - Flame Error: Cannot run with sound null safety 无法正常运行 null 安全,因为以下依赖项 [build\windows\flutter\flutter_assemble.vcxproj] - Cannot run with sound null safety, because the following dependencies [build\windows\flutter\flutter_assemble.vcxproj] 错误:无法以声音空安全运行,因为以下依赖项(flutter_absolute_path) - Error: Cannot run with sound null safety, because the following dependencies (flutter_absolute_path) 如何在 Flutter APK Build 中使用 Visual Studio AppCenter 处理“Cannot run with sound null safety”错误 - How to Handle "Cannot run with sound null safety" error with Visual Studio AppCenter in Flutter APK Build
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM