This question already has an answer here:
I am new to Android development. Can I use my existing Java code developed using JDK 7 in Android?
The functions use xerces dom and xslt and xpathapi. Currently when I installed Android Eclipse ADT environment these functions are not compiling. I would also like to know whether an Android device itself supports JRE 6 or 7?
Firstly, there is a difference between the Java JDK and the JRE. The JRE is the Java Runtime Environment while the JDK is the Java Development Kit. It is the JDK that you need for Android application development along with the existing Android SDK.
The Android SDK can use either JDK 6 or 7, however, it can ONLY use the JDK 6 API.
Yes , jdk 7 now support android Starting from build tools 19
JDK 5/6 ONLY. Actually andriod doesn't support jdk 6 completely because android jdk 6 is not Oracle JDK 6.
does android plan to support java 7
Apace Harmony
Originally Android development tools supported only jdk 6 features. But that was changed, first by Android Studio 0.3.2 in October 2013 see: http://tools.android.com/recent/androidstudio032released
then by ADT plugin 22.6 in March 2014,see: http://developer.android.com/tools/sdk/eclipse-adt.html
Android is not intended to be 100% compatible with any Java SE API version, not 6 nor 8 nor any. this was the reason of the court case of Oracle raised Against Google, accusing Google of fragmenting Java. Some APIs are impossible to implement on android as Swing; Imagine a window with a close button on android ! Others were delayed but implemented : for e.g.: Charset class is in Java SE 1.4 but implemented in android API 9, AutoClosable in Java 7 implemented in Android API level 19 to allow implementation of try-with-resources language feature. Some APIs are existent but for different purpose as Console.