What is android.jar ? What does it include?


I am a noob with android development. What is android.jar? I am referring to https://developer.android.com/guide/platform/?nav=true and trying to understand which layer it fits into. I heard conflicting opinions and am now really confused, considering my limited knowledge in Android. Thanks!


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.





It must be a executable external library, for example google's gson.jar library for converting classes to serialized json string.



  • How to find the midPoint of arc in SVG with javascript
  • Using Facets in the Aggregation Framework C# with Multiple Facet, Unwind and sortByCount
  • port not opening even after adding rule in ufw?
  • Execute code upon content-changes in TYPO3
  • has_and_belongs_to_many relationship not associating both ways
  • CSS/HTML: How to add a dropdown menu to existing navbar?
  • 3d object recognition for AR android app
  • how do I array from a GET request function in viewdidload function in swift
  • r - fill columns in data frame
  • Swagger UI for Rails API using ActiveModel's Serializer
  • RestKit - Process one REST operation at a time
  • How can I save Array of Class Objects in to a Plist(Iphone Development)
  • How to set and check a session after login?
  • Comparing a large set of images by content
  • Set a page title from a PartialView [duplicate]
  • Is there a function to calculate the difference between two times and display a relative result?
  • Authorization Policies/Gates for Laravel 5.3 web app consuming own API w/ Passport
  • How do I hide and show the contents contents of a modal?
  • Highcharts Drawing a line with chart.renderer.path
  • Using one probability set to generate another [duplicate]
  • Velocity (VM) template request parameters: Getting GET variables
  • How to use template selector within a ContentPresenter in Windows 8.1
  • How to assert page/tab/window title in Behat + Mink
  • MySQL - Filter records which date is biggest
  • jQuery colorbox breaks postbacks in ASP.NET Web Forms
  • Getting/building the SQL (with parameters) from NHibernate 3.2
  • How can I do case insensitive string search with Linq and SQL Server?
  • Find corners of a rotated rectangle
  • How to join two tables from different databases
  • Set WebClient.Builder.exchangeStrategies() without losing Spring Jackson configuration
  • Create an average of multiple excel chart without the data source
  • how to run ejabberd with Erlang on Heroku?
  • Drag and drop unicode TText in DelphiXe4
  • How to use Streams api peek() function and make it work?
  • Terminal run dalvikvm with am.jar
  • Using redis as an LRU cache for postgres
  • `$http:badreq Bad Request Configuration` - from angular post method, what is wrong here?
  • How to handle div that is created dynamically in a table
  • Make checkout phone field optional for specific countries in WooCommerce
  • ReferenceError: TextEncoder is not defined