【问题标题】:How to Add Stacktrace or debug Option when Building VSCode Project构建 VSCode 项目时如何添加 Stacktrace 或调试选项
【发布时间】:2021-03-22 08:20:04
【问题描述】:

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

【问题讨论】:

    标签: android flutter visual-studio-code


    【解决方案1】:

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

    例如С:\Android\PROJECT-FOLDER。

    1. 先运行flutter doctor,看看是否一切正常
    2. 然后运行 ​​flutter clean,重新开始
    3. 如果这不起作用,请检查路径名称并尽量不要使用特殊字符,我的意思是,使用英文。
    4. 或者做一个解决方法并创建一个新项目并将文件复制到新项目中,正如我之前所说的,坚持使用英语,作为一个讲西班牙语的人,我以前也遇到过同样的问题。

    【讨论】:

    • 非常感谢,我找了一天的解决方案!并且 -> cmd -> 直接到 flutter projekt 文件夹并运行 flutter clean 帮助完美。非常感谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-25
    • 2014-02-20
    • 2020-05-19
    • 2015-03-13
    • 2019-04-20
    • 1970-01-01
    • 2017-05-25
    相关资源
    最近更新 更多