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.
主要是因为。项目的文件路径里面有中文。所以把项目放到一个没有中文目录里面运行就OK了