0

I'm trying to use google maps in my android application. Therefore, I have 2 projects. One is my android app and another will be the google-play-services. How can I export the apk so that it is bundled together with the google-play-services?

Blo
  • 11,903
  • 5
  • 45
  • 99
user3300845
  • 127
  • 2
  • 11
  • You did not import the Services lib? What else do you need to bundle? – Skynet Apr 16 '14 at 09:41
  • have you add google play services as library to your project? – KRP Apr 16 '14 at 09:41
  • Yes i've imported it and i've added it as a library. If i didn't import it as a library it wouldn't work right? Anyways, when i install my app, the google-play-services is not installed together. Help please. – user3300845 Apr 17 '14 at 00:56
  • Basically my issue is this. I have a samsung device that is NOT installed with google play services. How can i include google play services in my apk so that they don't have to manually download? Is it possible? – user3300845 Apr 17 '14 at 07:10
  • did you add it to your build path or just as a library dependency? – kandroidj Apr 19 '14 at 03:30

1 Answers1

0

Unfortunately, I don't think it's possible to bundle the actual Google Play services APK as part of your app. From the official docs:

To test your app when using the Google Play services SDK, you must use either:

  • A compatible Android device that runs Android 2.3 or higher and includes Google Play Store. Or...
  • The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher.

You can, however, check if Google Play services are available and do an action based on the result (in your case, link them to the store where they can download it) by calling isGooglePlayServicesAvailable() as described here.

user3261344
  • 105
  • 1
  • 8