如何在构建VSCode项目时添加Stacktrace或调试选项



当我在使用vscode时运行模拟器时,我会收到这样的错误。我能做什么?

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```

由于项目的路径而发生此错误。使用不包含非ASCII字符的方式更改项目路径。

例如С:\Android\PROJECT-FOLDER。

  1. 首先请扑动医生检查是否一切正常
  2. 然后跑得干干净净,重新开始
  3. 如果这不起作用,请检查路径的名称,尽量不要使用特殊字符,我的意思是,使用英语
  4. 或者做一个变通办法,创建一个新项目,并将文件复制到新项目中,正如我之前所说,坚持使用英语,作为一个讲西班牙语的人,我以前也遇到过同样的问题

最新更新