英文:
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 (; /, & @ !% $ cause an error
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论