V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
donghui
V2EX  ›  问与答

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

  •  
  •   donghui · 2017-03-30 11:15:41 +08:00 · 6814 次点击
    这是一个创建于 2793 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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.
    6 条回复    2017-03-30 15:26:48 +08:00
    KNOX
        1
    KNOX  
       2017-03-30 11:50:45 +08:00 via Android
    gradlew build --stacktrace 看看具体卡哪里
    xingda920813
        2
    xingda920813  
       2017-03-30 13:05:31 +08:00
    xingda920813
        3
    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
        4
    donghui  
    OP
       2017-03-30 15:24:49 +08:00
    @xingda920813 嗯 这个升级成 2.14 了
    donghui
        5
    donghui  
    OP
       2017-03-30 15:25:50 +08:00
    @KNOX 貌似卡在"Install Android Support Repository (revision: 47.0.0)"这步了,中午过了一个小时就好了
    donghui
        6
    donghui  
    OP
       2017-03-30 15:26:48 +08:00
    @xingda920813 这个文档挺不错的,比较全面(包括了遇到的问题)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1213 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 23:12 · PVG 07:12 · LAX 15:12 · JFK 18:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.