我在flutter中运行第一个应用程序时遇到此错误,如何解决?

时间:2018-05-17 15:46:12

标签: android flutter

这是我的日志消息,Android studio 3.1.2,我在intellij和visual studio代码中也得到了同样的错误:

Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Finished with error: Exit code 1 from: X:\Android(exp+1)\flutter\flutter_appnew\android\gradlew.bat -v:
'X:\Android' is not recognized as an internal or external command,
operable program or batch file.

这是我扑了医生的结果:

C:\Users\kunda>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.3.2, on Microsoft Windows [Version 10.0.16299.431], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] IntelliJ IDEA Ultimate Edition (version 2018.1)
[√] VS Code, 64-bit edition (version 1.22.2)
[√] Connected devices (1 available)

• No issues found!

1 个答案:

答案 0 :(得分:0)

您应该将flutter项目移动到没有括号的目录,例如X:\Android\flutter\flutter_appnew