Ubuntu – Ubuntu 14.04 hangs while using Android Studio

14.04android-studio

My laptop is HP Pavilion dv-6 6155tx. And I am new user of Linux. I have installed ubuntu for programming purpose. But when I am using Android Studio with 2 or 3 applications runnning in background. System hangs even I cant move the cursor. I always run my application on phone. I dont use emulator. My phone is Xperia L(C2104). This is not the problem of phone because maximum time it hangs while indexing or gradling the project.

Does anyone know the possible causes of system hanging in these situation ?

Best Answer

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.