java - How to specify the JDK version in android studio? -
so android studio giving me gradle build error looks this:
error:(3, 22) compilesdkversion android-22 requires compiling jdk 7 now gives me these clickable prompts:
download jdk 7 select jdk file system open build.gradle file and have downloaded , installed jdk 7. problem when go select in "file system" can find directory named 1.6.0 jdk. furthermore, installation of jdk 7 skipped bullet point would've selected install directory, i'm not sure is. java control panel says ihave "java 7 update 79" i'm pretty sure i'm close, need tell android studio is. ran java -version command in terminal , says version "1.7.0_79".
any appreciated!
you can use cmd + ; mac or ctrl + alt + shift + s windows/linux pull project structure dialog. in there, can set jdk location android sdk location.
jdk location, run /usr/libexec/java_home -v 1.7 in terminal. send 1.7 java 7 or 1.8 java 8.
Comments
Post a Comment