1

I get the error:

Error:(3, 22) compileSdkVersion android-22 requires compiling with JDK 7

I am using a Mac running OSX 10.6 so JDK 7 isn't supported. Is there a way I can change the compileversion to one that can use JDK 6? Any help would be great.

Chiseled
2,2968 gold badges37 silver badges61 bronze badges
asked Aug 13, 2015 at 18:31

1 Answer 1

1

If you set your target android sdk version to 21 or above it will require Java 7.

If you cannot use JDK 7 you can set your target sdk version to 20 or below. However, I would caution against this, if you are going to be building apps that will be in distributed on the play store it is a good idea to be using Java 7 and targeting version 21.

You can see more information about upgrading to using JDK 7 here

answered Aug 13, 2015 at 18:44
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.