Android Studio: Buildtools 24.0.1 requires Java 1.8 or above. -
i'm trying setup android dev environment on mac.
my starting point java 1.7 believe. installed android studio , opened project i'd build. , says:
error:buildtools 24.0.1 requires java 1.8 or above. current jdk version 1.7.
so went , download java 1.8 u101 , installed that. no luck. removed android studio , re-installed , re-installed sdk , still no luck.
my java control pannel says: java 8 update 101. output of /usr/bin/java
:
java version "1.8.0_101" java(tm) se runtime environment (build 1.8.0_101-b13) java hotspot(tm) 64-bit server vm (build 25.101-b13, mixed mode)
output of /usr/bin/javac
javac 1.8.0_101
what have done wrong?
make sure jdk version through project structure
you can add in gradle section
compileoptions { sourcecompatibility javaversion.version_1_8 targetcompatibility javaversion.version_1_8 }
Comments
Post a Comment