报错提示:Connect to 127.0.0.1:11304 [/127.0.0.1] failed: Connection refused: connect
⇒ 网络代理问题:
找到 C:\Users\管理员用户名.gradle 文件夹中的 ‘ gradle.properties ’,将其中的代理全部注释掉
#systemProp.http.proxyHost=127.0.0.1
#systemProp.http.proxyPort=11304
#systemProp.https.proxyHost=127.0.0.1
#systemProp.https.proxyPort=11304
报错提示:Conenct to … failed: Read time out. 或 Could not get resource 。。。
⇒ 网络被墙 (科学上网)
unity 目录下的Editor\Data\PlaybackEngines\AndroidPlayer\Tools\GradleTemplates\mainTemplate.gradle
# 在repositories {
···
jcenter() {
url "http://jcenter.bintray.com/" # 此处添加
}
}
debug.keystore
⇒ 删除debug.keyStore
找到 C:\Users\管理员用户名\ .android\ 文件夹下的 debug.keystore 和 debug.keystore.lock 文件即可