gpt4 book ai didi

flutter - 无法运行 flutter 运行。得到一些 androidx 错误

转载 作者:行者123 更新时间:2023-12-03 04:21:13 25 4
gpt4 key购买 nike

我的 flutter 运行命令现在不起作用。它在4小时前工作。突然发生了什么事。我没有改变任何东西。只是添加了一些插件并删除了。因为它不支持我的 SDK 版本。已经浪费了这么多时间。请在这个问题上帮助我。 enter image description here

    Note: /Users/sunisha/Developement/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/sunisha/Developement/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/sunisha/Developement/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.6/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityBroadcastReceiver.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/sunisha/Developement/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.0+2/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBinding, unresolved supertypes: androidx.lifecycle.LifecycleOwner

e: /Users/sunisha/Developement/flutter/.pub-cache/hosted/pub.dartlang.org/in_app_update-1.1.11/android/src/main/kotlin/de/ffuf/in_app_update/InAppUpdatePlugin.kt: (8, 28): Unresolved reference: NonNull
e: /Users/sunisha/Developement/flutter/.pub-cache/hosted/pub.dartlang.org/in_app_update-1.1.11/android/src/main/kotlin/de/ffuf/in_app_update/InAppUpdatePlugin.kt: (55, 38): Unresolved reference: NonNull
e: /Users/sunisha/Developement/flutter/.pub-cache/hosted/pub.dartlang.org/in_app_update-1.1.11/android/src/main/kotlin/de/ffuf/in_app_update/InAppUpdatePlugin.kt: (57, 34): Unresolved reference: binaryMessenger
e: /Users/sunisha/Developement/flutter/.pub-cache/hosted/pub.dartlang.org/in_app_update-1.1.11/android/src/main/kotlin/de/ffuf/in_app_update/InAppUpdatePlugin.kt: (63, 40): Unresolved reference: NonNull
当我运行 Flutter channel 时;
enter image description here

最佳答案

您正在使用旧的 flutter 版本,通过执行以下命令更改为稳定 channel :

flutter channel stable
然后通过执行升级 flutter :
flutter upgrade
然后,您可以通过执行以下操作更新您的软件包:
flutter pub upgrade
https://flutter.dev/docs/development/tools/sdk/upgrading
https://flutter.dev/docs/development/tools/sdk/releases

关于flutter - 无法运行 flutter 运行。得到一些 androidx 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62530155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com