When you work with the Google APIs, your application is designed to work on a device that already has Google services installed (Maps, USB, etc.). If you absolutely need these services, you should create an anti-Google API, but then your application will not work on a device that is not certified by Google (that is, Google Play is not installed).
If you want to run the device without Google Play, and your application does not require that none of the Google services is 100% present, you must compile it with the usual Android APIs.
See this document a little more about what Google expects from certified devices.
source share