[Android] Configuring Java 1.8, Android Studio 2.2 on Ubuntu 14.04 32-bit

I had some issues when upgrading Java from 1.7 to 1.8 and Android Studio to 2.2. They can be summed up in this list:

– #1 Android Studio not booting because it detected JDK 1.7 instead of recently installed 1.8

I had to edit /home/user/.profile and add the following lines:

export JAVA_HOME=/home/user/java/jdk1.8.0_101

– #2 Android Studio not compiling because
Error:Process ‘command ‘/home/olmo/android-studio/jre/bin/java” finished with non-zero exit value 2

Same as before

– #3 Android Studio not compiling my project because of:
android studio unsupported major.minor version 52.0

Had to upgrade build-tools to the last version, which caused error #4.

– #4 Device was not found when running the app (“Nothing to show”).

ADB was not starting. I discovered that by clicking on “Android monitor” to see logcat, and adb was returning an error.
This issue was caused because my system is ubuntu 32-bit.

I had to downgrade platform-tools folder to v23.0.1. See
After downloading the folder in the link, and replacing my /home/user/android-sdk/platform-tools for this one, apps are launching succesfully in my Android device

Hope it saves several hours to somebody else🙂

[Offtopic] My new #AndroidDev missile :-)

Finally changed the hard drive to an SSD Crucial MX200. Am very happy with the boot time:

[Ubuntu 14.04]

22 secs from power button tap to usable desktop
15 secs from first “HP” splash to usable desktop

[Ubuntu 14.04 + Android Studio]

9 seconds to first window (gradle has to load project)
19 seconds from desktop to code that is already writable (gradle config… everything done)