flutter run 报错

来源:3-5 Flutter开发环境与Android开发环境设置详解(Windows)

慕田峪2101736

2022-08-28

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\Users\Ҧ����\Desktop\myfill\xc\flutter_trip\android\app\build.gradle’ line: 24

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

Failed to apply plugin [id ‘com.android.application’]
Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your
project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line ‘android.overridePathCheck=true’ to gradle.properties file in the project directory.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s
Running Gradle task ‘assembleDebug’… 4.6s
Exception: Gradle task assembleDebug failed with exit code 1

写回答

2回答

CrazyCodeBoy

2022-08-30

嗯,好的。
0
0

CrazyCodeBoy

2022-08-29

亲是运行的课程源码报错,还是自己搭建的项目报错呢
0
1
慕田峪2101736
运行课程源码,已经解决了,原因是电脑用户名为中文
2022-08-29
共1条回复

Flutter从入门到进阶 实战携程网App 一网打尽核心技术

解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。

4788 学习 · 3270 问题

查看课程