Reputation: 1063
I have downloaded a fresh copy of AndroidStudio 1.02 which comes with gradle 2.2.1. My JAVA_HOME points to a java 1.7 installation. In fact I do not even have java 1.4.
Yet I receive this error:
Error:Gradle 2.2.1 requires Java 6 or later to run. Your build is currently configured to use Java 4.
After searching for an hour on the internet and digging into AndroidStudio settings I cannot get it to work. I'll appreciate if someone can help.
Upvotes: 1
Views: 1383
Reputation: 368
Try File->Other Settings->Default Project Structure and set JDK Location to Java 6 or later
Upvotes: 2