I have the newest Ubuntu distribution (15.04). I installed the latest Java (1.8 and Android Studio with the SDK, but when I want to build a project, it builds a running application and takes infinite time. (It builds all the time without any errors). Even if I want to stop building, then gradle building stop infinitely Does anyone have a similar problem?
I had an identical problem, and finally I solved it with these three commands in the terminal:
sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
I found that here: Android Studio cannot create a new project dedicated to working in slave mode
Try turning on offline work for Gradle, which work for me.
Do this via File -> Settings -> Buid, Execution ... -> Build Tools -> Gradle.
then check battery life.