由于路径包含非ASCII字符,因此无法构建我的android项目 我什至无法将其导入Android Studio。
当我尝试使用CLI构建项目时,收到以下消息:
What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> Failed to apply plugin [id 'com.android.library']
> 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.
所以我将这一行放在Gradle属性文件中
android.overridePathCheck=true
因此该文件的外观如下:
# This file was originally created by the Android Tools, but is now
# used by cordova-android to manage the state of the various third party
# libraries used in your application
# This is the Library Module that contains the Cordova Library, this is not
# required when using an AAR
# This is the application project. This is only required for Android Studio Gradle projects
# Project target.
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
android.overridePathCheck=true
cordova.system.library.1=com.android.support:support-v13:23+
cordova.system.library.2=com.google.android.gms:play-services-gcm:+
但这似乎没有帮助
如果我不想为该项目创建新路径并且不想创建符号链接-如何用添加的行解决它?我有想念吗?