Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Add Stacktrace or debug Option when Building VSCode Project

When I run the emulator while using vscode, I get an error like this. What can I do?

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

like image 725
Vuslat Avatar asked Oct 29 '25 04:10

Vuslat


1 Answers

This error occurs because of the path of the project. Change your project path with a way which don't contain non-ASCII character.

For example С:\Android\PROJECT-FOLDER.

  1. First run flutter doctor, to see if everything is okay
  2. Then run flutter clean, to have a fresh start
  3. If that doesn't work check the name of the path and try not to use special characters by that I mean, use English.
  4. Or do a workaround and create a new project and copying the files to the new project, as I said before, stick to English, as a Spanish speaker I've run into the same issues before.
like image 183
RobHG Avatar answered Oct 30 '25 17:10

RobHG



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!