Your project path contains non-ASCII characters android studio

前端 未结 13 2096
借酒劲吻你
借酒劲吻你 2020-11-30 04:34

I was installing android studio, but I have this problem when the program is starting:

Error:(1, 0) Your project path contains non-ASCII characters. T

相关标签:
13条回答
  • 2020-11-30 04:59

    I created a symbol link like described by Clézio before. However, I had to specify a suitable encoding (e.g chcp 65001) in command line before.

    chcp 65001
    mklink /D "C:\android-sdk" "C:\Users\René\AppData\Local\Android\sdk"
    

    If you have your SDK installed under Path C:\Users[USER]\AppData... you may have to run command line with administrativ priviledges.

    0 讨论(0)
  • 2020-11-30 05:03

    Your project path contains Chinese characters,

    em: F:\资料\Yourproject

    Please rename the path English characters:

    em: F:\Data\Yourproject

    0 讨论(0)
  • 2020-11-30 05:03

    What I actually did was redirect (I don't actually know the term) the path to my other user (my path was C:\Users\Keith Peñas\ etc.) then, I thought that I had this Spanish letter on, so I redirected the path to my other user, in this case it was (C:\Users\Keith). Then I had another problem: it was somewhat like "Your path cannot be with the rooted path". So I made a folder with the name of my app and then it worked!

    Another problem I encountered was: "your path contains white space etc." and it was from my other disk.

    Hope this helps!

    0 讨论(0)
  • 2020-11-30 05:03

    The best solution to your problem is to move your project folder to other directory with no non-ASCII characters and blank spaces.

    For example С:\Android\PROJECT-FOLDER.

    You can create the directory in C:\ using the name that you want.

    0 讨论(0)
  • 2020-11-30 05:07

    This error occur because of path of project. Change your project path wiht way which dont contain nonAscii character.

    0 讨论(0)
  • 2020-11-30 05:09

    I solved this issue by adding this line

    android.overridePathCheck=true
    

    to

    gradle.properties
    

    As this message said

    This warning can be disabled by using 
    the command line flag -Dcom.android.build.gradle.overridePathCheck=true,
     or adding the line 
    'com.android.build.gradle.overridePathCheck=true'
     to gradle.properties file in the project directory.
    
    0 讨论(0)
提交回复
热议问题