(4.3.2.21) 卡在Releasing lock on daemon addresses registry.

gradlew assembleDebug --debug
[DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running

[DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.

[DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.

[DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.

方法1 不起作用

关于bintrayUpload的那些坑

尝试了stackoverflow上面的各种方法,比如删除./gradle文件夹,gradle开离线模式,开启gradle daemon等等,都没有作用。
因为是在upload阶段出现的错误,我也想过是不是因为代理设置出的问题。我尝试把as的代理设置关掉了,ss开全局模式,这个问题还是没有解决。
最后我在gradle.properties这个文件下面发现了下面几行有关代理的设置:

systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1080
删除这两行代码之后果然成功解决了上面的问题

方法2 有点用

Gradle Build too long

Thanks for your much appreciated help. I solved this issue. Apparently the issue was because (I suppose that) the JaCoCo was dexing along with my class dexing and was issuing a locks. I fixed this by removing the testCoverageEnabled=true line in my app’s build.gradle.

In case any of you guys run into similar issue. Create two build flavours (prod and development) and add the line testCoverageEnable=true only for development flavor and set it to false else where. Also ensure that your development has the minSdkVersion set to 21 (Lollipop) as the dexing is done for ART and basically you won’t be running into this issue.

  1. 去除多渠道
  2. 多版本都加入 testCoverageEnable=true

方法3 说是内存问题,似乎没啥用

Android Studio: Unable to start the daemon process

  1. If You just open too much applications in Windows and make the Gradle have no enough memory in Ram to start the daemon process.So when you come across with this situation,you can just close some applications such as iTunes and so on. Then restart your android studio.

  2. File Menu - > Invalidate Caches/ Restart->Invalidate and Restart.

或者?

  1. Try deleting your .gradle from C:\Users\ directory and try again.

或者

if you are on windows,
Try deleting your .gradle from C:\Users\ directory and try again.
or
go to Android Studio -> Preferences -> Gradle -> and tick Offline work.

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值