我在虚拟设备中运行 flutter 应用程序时遇到问题,我可以正常运行虚拟设备,但无法使用 flutter 应用程序运行
// My local.properties
sdk.dir=C:\\Users\\dat nguyen\\AppData\\Local\\Android\\sdk
flutter.sdk=C:\\flutter
flutter.buildMode=debug
flutter.versionName=0.1.0
// My gradle.properties
org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
C:\Users\dat nguyen>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.4529], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.1)
[√] IntelliJ IDEA Community Edition (version 2024.1)
[√] Connected device (3 available)
[√] Network resources
! Doctor found issues in 3 categories.
当我运行 flutter 时总是抛出此错误
Launching lib\main.dart on sdk gphone x86 in debug mode...
'D:\flutter' is not recognized as an internal or external command,
operable program or batch file.
Error: Gradle task assembleDebug failed with exit code 1
在虚拟设备中运行flutter应用程序,我想运行这个但它总是抛出错误
您必须接受 flutter doctor 输出中显示的 Android 许可证
flutter doctor --android-licenses
flutter run
命令再次运行应用程序