What Is Android.jar ? What Does It Include?
Solution 1:
there are 2 android.jar:
The first one is the android.jar in the computer. This is a JAR file. It is provided by gradle in the classpath. It contain the Android framework classes. It does not contain the Android framework code but only stubs for the type signatures, methods, types, etc. The android.jar JAR file is only used for the Java compiler before deployment on an Android device. It is not bundled with your application. By default, all calls to the provided Android.jar throw exceptions, this allows you to write tests that do not depend on any Android platform behavior.
Once you application is deployed on the device it will use the android.jar JAR file on the Android device (The second one). I couldn't find any source that said android.jar is here. I think android.jar fit better in the "Java API Framework" layer.
Sources:
Solution 2:
It must be a executable external library, for example google's gson.jar library for converting classes to serialized json string.
Post a Comment for "What Is Android.jar ? What Does It Include?"