[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:

PATH=$PATH:/home/user/android-sdk/platform-tools:/home/user/jdk1.8.0_101/bin
export JAVA_HOME=/home/user/java/jdk1.8.0_101
export STUDIO_JDK=$JAVA_HOME
export JDK_HOME=$JAVA_HOME

– #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.

Solution:
I had to downgrade platform-tools folder to v23.0.1. See
here
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 🙂