我无法在我的安卓模拟器上运行我的Flutter应用程序。

huangapple go评论74阅读模式
英文:

I can't run my flutter app in my android emulators

问题

我已经在YouTube上尝试了一切,但仍然遇到以下相同的错误:

在调试模式下启动AOSP on IA模拟器上的lib\main.dart...
main.dart:1
系统找不到指定的路径。
错误: 找不到或加载主类org.gradle.wrapper.GradleWrapperMain
原因: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
异常: Gradle任务assembleDebug以退出代码1失败

已退出(sigterm)

我尝试了从头开始重新安装所有东西,包括flutter、java、android studio以及所有所需的SDK,不知道是否漏掉了什么。我已经按照YouTube上的所有安装说明进行了操作,甚至尝试了像chatGPT建议的安装gradle。请帮忙。

英文:

I have tried everything on YouTube and still I am getting the same following error:

Launching lib\main.dart on AOSP on IA Emulator in debug mode...
main.dart:1
The system cannot find the path specified.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
Exception: Gradle task assembleDebug failed with exit code 1

Exited (sigterm)

I tried reinstalling everything from scratch, flutter, java, android studio and all the SDKs needed, don't know if I missed any. I have followed all installation instructions from YouTube and even tried installing gradle as suggested by chatGPT too. Please help

答案1

得分: 0

Most likely, one of the folder names used by the project contains characters.

检查您的文件夹名称或在新路径中创建项目,其中文件夹名称不包含字符。

通常字符(; /, & @ !% $ ;)会导致错误。

英文:

Most likely, one of the folder names used by the project contains characters.

Check your folder names or create the project in a new path where folder names do not contain characters.

Usually the characters (; /, & @ !% $ 我无法在我的安卓模拟器上运行我的Flutter应用程序。 cause an error

huangapple
  • 本文由 发表于 2023年6月16日 03:28:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76484962.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定