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…

Continue reading

Root Your Nexus 5 Under Linux [Guide]

I am using Linux Mint for this guide, and unlike Windows, under Linux you do not have to install any additional drivers. If you are using Ubuntu or Fedora, you need to set up some things for ADB to work. You can follow my Ubuntu or my Fedora guide to set up ADB. With Linux Mint you just plug and play, that is the beauty of it 🙂

Now let’s get down to the Nuts and bolts of this guide

Continue reading

Setting Up ADB/USB Drivers for Android Devices in Linux (Fedora)

I have been using Linux Fedora for a couple of month and decided that it was time to set it up for Android. I was expecting it to be something like what I did for Ubuntu (Setting Up ADB/USB Drivers for Android Devices in Linux Ubuntu), but it was much easier in Fedora. Just had to install two utilities and that was it. This was tested in Fedora 18 Spherical Cow and Fedora 19 Schrödinger’s Cat.

But I do not want to bore you with my story, continue reading for the guide

Continue reading

Script to Rename Files in UNIX / Linux

This is a simple script that will rename files. Takes an absolute path as input, and looks for files with a specific string in its name. Will not traverse up the specified path. It will keep a log of the last run in the script’s directory.

I have more than 500 files that need to be renamed, but I am too lazy to do it manually, so I wrote this script to do it for me. All of the files follow two specific patterns in the name as indicated below.

Continue reading