Ubuntu 14.04 hangs while using Android Studio

Solution 1:

Does Ubuntu hang when you are not using the Android virtual mobile device emulator? Genymotion is much faster than the Android emulator in Android Studio, and the HP Pavilion dv6-6155tx with its Core i5 processor and 4GB RAM could easily run it.

Since the laptop is hanging when you run your application on the phone, you could try developing your application on a virtual Android OS in Genymotion. This would buy you some time to keep on developing your application, while you try to find out why the phone is making your laptop hang.

Because your existing project is getting stuck in Gradle, I wonder if you created a new project in Android Studio to print something to the screen if it would build properly.