Skip to content

Instantly share code, notes, and snippets.

@Visionchen
Last active September 29, 2018 21:31
Show Gist options
  • Select an option

  • Save Visionchen/0ef0d8683d4af6923d5aba09eff835f3 to your computer and use it in GitHub Desktop.

Select an option

Save Visionchen/0ef0d8683d4af6923d5aba09eff835f3 to your computer and use it in GitHub Desktop.
android 无法打包apk
### 1.修改 gradle.properties
```language
使用gradlew.bat assembleRelease --console plain无法打包
观察报错内容,其中有 > Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused: connect,第一反映是网络代理问题,于是找到 系统盘符:\Users\管理员用户名\.gradle 文件夹中的 gradle.properties 文件,将其中的代理相关设置,用 # 注释掉。
# systemProp.http.proxyHost=127.0.0.1
# systemProp.http.proxyPort=80
# systemProp.https.proxyHost=127.0.0.1
# systemProp.https.proxyPort=80
https://blog.csdn.net/weixin_42097173/article/details/80745044
---------------------
本文来自 ls9512 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/ls9512/article/details/80690910?utm_source=copy
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment