Skip to main content
1-Visitor
June 14, 2017
Question

what is enforcing jdk 6 compatibilty in android studio as mentioned in the android sdk developer guide

  • June 14, 2017
  • 1 reply
  • 3696 views

in android sdk developer guide it has been mentioned as the following

Requirements

Android applications require JDK 6 compatibility. Gradle requires JDK 7 or

higher. While you can use a higher version of the JDK than JDK 6 with Android,

you must set your IDE to enforce JDK 6 compatibility for your generated classes.

please tell whether it is necessary to do this and if yes then how to do this?

1 reply

5-Regular Member
June 14, 2017

Dibya, I haven't had any issue while working with JDK8 having said that i had also upgraded the Gradle version probably because of that. Once you have your project setup in android studio you may see some prompts to update the required components. Are you running into any specific issue concerning JDK configuration in your project?

dmishra1-VisitorAuthor
1-Visitor
June 14, 2017

I'm trying to run the exampleclient sample code.provided in the android sdk. I have set the min sdk version to 18 and gradle version I have adjusted to 3.3.

jdk version is 8

Screenshot (2).png

5-Regular Member
June 14, 2017

Are you able to build the project without any errors? This seem to indicate there there is some issue in the project setup. could you please also check the event log at bottom right corner for more information.