jacky

A technique blog for jacky

here are my artitles about work(embeded system develop, docker, etc.) and life(cook, hiking)


Android studio gradle connection refused

android studio compile errors

查看详细的日志信息

C:\Users\jacky\AppData\Local\Google\AndroidStudio4.2\log

bug0: gradle connection refused

这个问题困扰我很久了,最近在维护一个安卓app,经常改着改着就sync失败了,查看原因就是connection refused, 虽然明知道是网络问题,但明明setting-proxy没有问题,所以耽误了许多时间。

今天在知乎上找到了答案,直接修改~/.gradle/gradle.properties文件即可实现gradle全局proxy

Step0-configure shadowsock

image-20200323211555353

Step1-configure gradle.properties

vim $HOME/.gradle/gradle.properties
systemProp.http.proxyHost=127.0.0.1
systemProp.https.proxyPort=1087
systemProp.https.proxyHost=127.0.0.1
systemProp.http.proxyPort=1087

enjoy!

if not OK, try following, use aliyun for gradle instead of official source

modify project’s root build.gradle

maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}

bug1: Could not run build action using Gradle distribution

Hi all, I got the same issues for gradle-5.3.1, but during the importing project I was choose to overwrite the configuration by pointing the gradle-5.3.1 Installation Directory to the directory of gradle-5.3.1 in my local and pointing the gradle-5.3.1 User Home to the gradle-5.3.1\bin then continued the importing project then it was successful, it solved my problem.

gradle

from [https://github.com/eclipse/buildship/issues/755]

参考nguyentuanviet77 的回答,设置本地的gradle路径即可解决

最近的文章

6.s081 Run xv6 riscv by qemu on ubuntu20.04

please refer offical site firstbuild&install toolchaingit clone https://github.com/riscv/riscv-gnu-toolchaincd riscv-gnu-toolchain/./configure --prefix=/usr/local/opt/riscv-gnu-toolchainmakesudo make installbuild&install QEMUwget https://d...…

继续阅读
更早的文章

test bluez4 on arm-linux

初始化蓝牙sh /etc/enable_bt.sh查看蓝牙,获取设备编号 hci0hciconfig -ahci0: Type: BR/EDR Bus: UART BD Address: 20:70:02:A0:00:00 ACL MTU: 1021:8 SCO MTU: 64:1 DOWN RX bytes:604 acl:0 sco:0 events:30 errors:0 TX bytes:398 acl:0 sco...…

bluez BT bluez4继续阅读