Android Question Google Map in debug mode failed ...

Yayou49

Active Member
Licensed User
Hi,

B4A Version: 5.80

I'm using a google map service.
Running my app on my phone is quite ok.
Trying to run the app in debug mode with an emulator fails:
"Please install Google Play Services."
I've done everything in Erel's tuto for V5.8, so I don't understand.

- I've enabled Google Maps Android API
- created a key
- installed the Android SDK "google play service"
- adding stuff to my manifest as following (with the good API key):
- Add attributes to the main activity as describe:
- Add the Android-support-v4.jar and google-play-services.jar to my AddLib

But even with all those things, with my emulator, it doesn't work.
My emulator is:
Android 6.0
API level 23
Intel Atom(x86_64)

Does someone know what can be wrong ????

Thx in advance.
 

ronell

Well-Known Member
Licensed User
Longtime User
then post your code.. or upload your project to so we can test it or even fix it
 
Upvote 0

eurojam

Well-Known Member
Licensed User
Longtime User
you should follow the tutorial for B4A 5.8+....your code uses google map like in B4A below 5.8
https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386
it should be somethink like this:
B4X:
#Region  Project Attributes
    #ApplicationLabel: GoogleMapDemo
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: False
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

#AdditionalJar: com.google.android.gms:play-services-maps
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…