gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 15:10:48 24 4
gpt4 key购买 nike

当我在使用 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。

  • 先运行flutter Doctor,看看是否一切正常
  • 然后运行flutter clean,重新开始
  • 如果这不起作用,请检查路径的名称并尽量不要使用特殊字符,我的意思是,使用英文。
  • 或者做一个解决方法并创建一个新项目并将文件复制到新项目,正如我之前所说,坚持使用英语,作为一个讲西类牙语的人,我以前遇到过同样的问题。
  • 关于android - 构建 VSCode 项目时如何添加 Stacktrace 或调试选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65242509/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com