As Java APIs are used in Android. If you want programs to communicate with each other, you have to use an API, and Oracle thinks it should be able to copyright those, but the Computer scientists tend to disagree because APIs are essential to use for communicate.
Image Credit: Extreamtech
The ongoing battle between Google and Oracle, Google finally made a change over the use of Java in Android. As Google told to VentureBeat that it in, "Android N" , the next major version of Android and its swapping from Java libraries to OpenJDK that is the "official" open source version of the Java Platform, and Oracle makes it available under the GPL with a linking exception.
With using OpenJDK, Android opens the door to the latest Java features such as lambdas, providing a significant quality of life improvement for Android developers. Android's Java implementation is currently based on Java 7, while OpenJDK supports the latest version, Java 8, and should be updated to support all the future versions of Java. Apache Harmony retired at Java 6.
After the Google declared that it had "released new versions of the Android platform that are expressly licensed by Oracle for use by Google under the free, open source license provided by Oracle as part of its OpenJDK project. Google's claim that it "released" this new version of Android is an interesting statement. It's referring to various commitments that will only come with Android N.
Related Article: From Cupcake to Marshmallow – The Sweet History of Android