flutterdartvisual-studio-codeandroid-emulator

Why does vscode give me the following error even though I installed everything without any problems?


FAILURE: Build failed with an exception.

Failed to apply plugin 'com.android.internal.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.

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.

BU�LD FAILED in 32s Error: Gradle task assembleDebug failed with exit code 1

When I start the project, it runs the emulator, but it gives this error in the debug section.


Solution

  • Actually error says everything clearly;

    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.

    Your project path has Non-ASCII Character, for your case its seems like the "Ü" char at "/Masaüstü/".

    For the solution; you can change the project location to another file what its not has a non-ASCII char or open a folder outside the desktop and do not contain any non-ASCII characters. Do not contain any Turkish characters like ü,ğ,ö etc.