Home » Android » build – Select "Android X.X" or "Google APIs" in new project

build – Select "Android X.X" or "Google APIs" in new project

Posted by: admin June 15, 2020 Leave a comment

Questions:

I think it’s basically the same, but what build target should I select? Or is there really difference between them?

For example the “Android 2.2” or “Google APIs” for the same Platform and API Level?

Eclipse Build Target selector

How to&Answers:

If you application uses a google API, such as Google Maps, you will need the Google API version. I have not encountered a commercial device that does not include that build, but the raw open source Android does not include the Google API because it contains proprietary non-open source code from google.

If you do not use any of these API’s it will not matter which one you choose. But if you are using any of the google apis you must use the google build.

Answer:

It will matter for some things, if you select a newer API you need to be careful what methods you use in your program.

if you use a method that is new in 3.2 and doesnt exist in older API’s your app will not run on older devices…unless you make exceptions