Error:Gradle 2.2.1 requires Java 6 or later to run. Your build is currently configured to use Java 5

I am getting the following error when starting Android studio.

Error:Gradle 2.2.1 requires Java 6 or later to run. Your build is currently configured to use Java 5.

Any ideas on how to fix it? Thanks in advance

File->Other Settings->Default Project Structure and set JDK Location to Java 6 or later. Hope it helps

Thank you so much! That fixed my issue. Now all I need is a new computer so it would not run so slow.

Muchas gracias, a mi también me sirvió y arregle mi problema

Or possibly just wipe windows off your existing box and install ubuntu or similar :slight_smile: