Android studio, configure gradle project takes forever

前端 未结 9 2271
滥情空心
滥情空心 2020-12-14 01:06

After changing the gradle build file to use gradle build tool 0.8.+,

classpath \'com.android.tools.build:gradle:0.8.+\'

my Android studio

9条回答
  •  清歌不尽
    2020-12-14 01:52

    I have centos 7 64 bits installed on a virtualbox 5.0.16 virtual machine and gradle version 2.10 with Android Studio 2.0

    The log file of gradle is located at $HOME/.gradle/daemon/2.10 Log file: daemon-.out.log

    By inspecting this log file I found out that libz.so.1 was not found by aapt.

    Despite that command "locate libz.so.1" output was

    /usr/lib64/libz.so
    /usr/lib64/libz.so.1
    /usr/lib64/libz.so.1.2.7
    

    aapt was not able to find it.

    In order to solve the issue I had to execute

    yum install zlib.i686
    

    Once installed, Gradle started compiling. Good luck!

提交回复
热议问题