Friday, February 20, 2015

Error:compileSdkVersion android-21 requires compiling with JDK 7

The Exact Fix for this Issue (Android Studio Users on Mac) 

 If you have already upgraded to Java 8, please note that the JDK location is now within /Library/Java compared to Java 6's location /System/Library/Java. So to fix this problem,

Right click on the Project folder > Project Structure > SDK Location. 

Then change JDK location to

/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home

To find the default JDK location, run the java_home script

/usr/libexec/java_home

No comments:

Post a Comment