赞
踩
刚打开别人的项目,就出现了报错:
一、问题描述:
1.Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.android.internal.application'.
2.Caused by: org.gradle.api.tasks.StopExecutionException: 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.properties,打开并在最后一行添加“android.overridePathCheck=true”语句,然后点击右上角的“Try Again”
三、运行完毕,报错消失 。
四、之前还遇到一个关于debug.keystorede的错误
问题描述:com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store “C:\Users\Admin\.android\debug.keystore”: Invalid keystore format
关闭Android Studio,找到“.android”文件夹里面的“debug.keystore”文件并删除,不放心的话先备份一个到桌面,再打开Android Studio就成功了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。