我正在使用
Android Studio,每次Gradle尝试构建我的项目时,它都会被卡住.我的意思是它一次给我几个小时的构建对话框,我无法构建我的项目.这是截图:
Android Studio Gradle Build
我已经搜索了整个互联网,但我找不到任何解决方案似乎都有效.我是Android开发的新手,所以这里的某些内容可能让我直截了当地盯着我看.对我来说最重要的是我的.gradle目录中的这部分日志:
DaemonExpirationPeriodicCheck running 16:20:23.790 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonStatus] GC rate: 0.0/s 16:20:23.793 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry. 16:20:23.795 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired. 16:20:23.803 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 16:21:23.790 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running 16:21:23.791 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonStatus] GC rate: 0.0/s 16:21:23.794 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry. 16:21:23.795 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired. 16:21:23.800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 16:22:23.792 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running 16:22:23.793 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonStatus] GC rate: 0.0/s 16:22:23.798 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry. 16:22:23.799 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired. 16:22:23.806 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 16:23:23.794 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running 16:23:23.795 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonStatus] GC rate: 0.0/s 16:23:23.800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry. 16:23:23.800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired. 16:23:23.807 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
如您所见,这个序列一遍又一遍地重复.我100%肯定我有正确的gradle安装,我似乎无法弄清楚为什么我的项目拒绝构建.
任何帮助表示赞赏!
编辑:
我只想让大家知道我弄明白了!几年前,我的父母显然在我的电脑上放了一些非常强大的家长控制软件,我忘了它就在那里.卸载后,Android Studio现在可以正常运行.该软件基本上阻止了进出大多数端口的所有未知流量.无论如何,谢谢大家的帮助.我终于可以开始开发了!
解决方法
我只想让大家知道我弄明白了!几年前,我忘了它就在那里.因此,如果您有任何人在您的计算机上拥有Qustodio家长控制,请注意它将阻止您执行与软件开发相关的任何事情.卸载后,谢谢大家的帮助.我终于可以开始开发了!