Monday 16 October 2017

macos - Error:compileSdkVersion android-21 requires compiling with JDK 7

I have been having this problem too. So far I cannot find
a fix for it, so I've resorted to changing the maximum SDK version to 20, which works
with JDK6.



As for the file location, instead of
Android studio assuming it should be in
/System/Library/Java/JavaVirtualMachines/Insert JDK
version
/Contents/Home.



In reality
my JDK gets installed in /Library/Java/JavaVirtualMachines/JDK Version
Here
/Contents/Home.



Trying to
select a JDK in the actual directory where its installed makes android studio say that I
need to select a valid JDK location. For now I can't find a fix, so like I said above, I
have resorted to changing the maximum SDK version to 20 instead of 21 and it will stay
like that until more people either suffer from the bug so that Google fix it. Or until
an actual fix gets posted online instead of 101 ways for it not to
work.




Hope this helps for now, it
isn't really a solution/answer but it is a work around that works for me, for the time
being.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...