Android Studio – Error While Loading Shared Libraries: libz.so.1

If you are running Android Studio in Linux Mint / Ubuntu 64bit and you just updated to the latest Android Studio version, you might get the following error: /home/esilva/IDEs/android-studio/sdk/build-tools/19.1.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

Android Studio: Failed to complete Gradle execution. Supplied JAVA_HOME is not a valid folder

So I recently upgraded from Java 7 to Java 8, when I opened Android Studio, the below message popped up Failed to complete Gradle execution.Supplied JAVA_HOME is not a valid folder. You supplied /usr/lib/jvm/java-7-oracle I was like, “what the heck!” since I already had changed my JAVA_HOME environment variable…