gradle 构建 android 时卡住( centos6.8、 Java 1.8、android-sdk api23、gradle-3.4.1)

2017-03-30 11:15:41 +08:00
 donghui
gradle 构建 android 时卡住( centos6.8 、 java 1.8 、 android-sdk api23 、 gradle-3.4.1 )
详细日志如下图,求解
PS:在windows环境是ok的

11:09:27.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:09:27.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
11:09:27.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
11:09:27.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:09:27.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
11:09:27.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
11:09:31.089 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting OS memory status event {Total: 4002320384, Free: 3458224128}
11:09:31.089 [DEBUG] [org.gradle.launcher.daemon.server.health.LowMemoryDaemonExpirationStrategy] Received memory status update: {Total: 4002320384, Free: 3458224128}
11:09:31.089 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting JVM memory status event {Maximum: 477626368, Committed: 186122240}
11:09:36.089 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting OS memory status event {Total: 4002320384, Free: 3457138688}
11:09:36.089 [DEBUG] [org.gradle.launcher.daemon.server.health.LowMemoryDaemonExpirationStrategy] Received memory status update: {Total: 4002320384, Free: 3457138688}
11:09:36.089 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting JVM memory status event {Maximum: 477626368, Committed: 186122240}
11:09:37.282 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running
11:09:37.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:09:37.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
11:09:37.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
11:09:37.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:09:37.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
11:09:37.284 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
11:09:41.089 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting OS memory status event {Total: 4002320384, Free: 3456770048}
11:09:41.089 [DEBUG] [org.gradle.launcher.daemon.server.health.LowMemoryDaemonExpirationStrategy] Received memory status update: {Total: 4002320384, Free: 3456770048}
11:09:41.089 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting JVM memory status event {Maximum: 477626368, Committed: 186122240}
11:09:46.089 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting OS memory status event {Total: 4002320384, Free: 3457011712}
11:09:46.089 [DEBUG] [org.gradle.launcher.daemon.server.health.LowMemoryDaemonExpirationStrategy] Received memory status update: {Total: 4002320384, Free: 3457011712}
11:09:46.089 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting JVM memory status event {Maximum: 477626368, Committed: 186122240}
11:09:47.282 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running
11:09:47.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:09:47.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
11:09:47.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
11:09:47.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:09:47.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
11:09:47.283 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
6845 次点击
所在节点    问与答
6 条回复
KNOX
2017-03-30 11:50:45 +08:00
gradlew build --stacktrace 看看具体卡哪里
xingda920813
2017-03-30 13:05:31 +08:00
xingda920813
2017-03-30 13:10:23 +08:00
ldd --version 看一下 glibc 的版本吧, 我曾经在 CentOS 6 上构建 Android 不成功, 是因为 CentOS 6 的 glibc 最高为 2.12, 而 aapt 需要 2.14 的 glibc. CentOS 7 带的是 2.17 版本的, 没问题.
donghui
2017-03-30 15:24:49 +08:00
@xingda920813 嗯 这个升级成 2.14 了
donghui
2017-03-30 15:25:50 +08:00
@KNOX 貌似卡在"Install Android Support Repository (revision: 47.0.0)"这步了,中午过了一个小时就好了
donghui
2017-03-30 15:26:48 +08:00
@xingda920813 这个文档挺不错的,比较全面(包括了遇到的问题)

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/351402

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX