Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't build project in Android Studio on Ubuntu. Gradle running build takes infinity

I have the newest distribution of Ubuntu(15.04). I have installed the newest Java(1.8 and Android Studio with SDK, but when i want to build project it's building running application and it takes infinity time.(It building all time without any error).Even if I want to stop building, then stopping gradle building takes infinity. Does anyone have a similar problem?

like image 841
phoxi Avatar asked Aug 23 '15 11:08

phoxi


People also ask

Why does my Gradle build take so long?

Check your Internet connection. If internet speed is very slow gradle build will also take long time to build. I check by change my wifi internet connection with another one good speed connection. Now build time is normal.

Why does Android studio take so long?

According to Android Studio's official system requirements, it takes at minimum 3 GB RAM to run smoothly. Honestly, its a lot and I believe that is the biggest cause of being it too slow all the time.

How long does Gradle project sync take?

One bit of a downside is that it takes roughly 3 minutes to re-sync when we "Import Gradle Project".


1 Answers

I had identical problem and finally I solved this by those three commands in 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 fails to build new project, timed out while wating for slave aapt process

like image 166
KarolR Avatar answered Sep 28 '22 09:09

KarolR