Android Question Not getting Google Maps to work

brodmuehler

Active Member
Licensed User
Longtime User
Hi

I am struggling to get GoogleMaps to work. I think I did everything as instructed and per tutorials. But I still get the following error message ...

ERROR: resource directory 'C:\Android\tools\..\extras\google\google_play_services\libproject\google-play-services_lib\res' does not exist

When I look for the directory, it isn't there. It gets as far as C:\Android\tools\..\extras\google\google_play_services

The SDK is looking like ...
View attachment 54538

I am B4A version 6.80.

I have no clue what is wong. Any idea is highly appeciated.

Thanks a lot.
Kindregards
René
 

Attachments

  • IGCViewer.zip
    10.2 KB · Views: 261

DonManfred

Expert
Licensed User
Longtime User
Remove these lines. ALL

B4X:
    #AdditionalRes: $AndroidSDK$\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
    #ExcludeClasses: .games, .drive, .fitness, .wearable, .measurement, .cast, .auth, .nearby
    #ExcludeClasses: .tagmanager, .analytics, .wallet, .plus, .vision, .gcm
    'remove the following line if you use AdMob
    #ExcludeClasses: .ads

Add this line

B4X:
#AdditionalJar: com.google.android.gms:play-services-maps

Hope that´s all. As i do not have your json file i cant test it
 
Upvote 0

brodmuehler

Active Member
Licensed User
Longtime User
Hi

thanks a lot. Now it is compiling. Unfortunately it crashes when opening. Just stops without any further info.

René
 
Upvote 0

brodmuehler

Active Member
Licensed User
Longtime User
Log is totally empty.

I can complie the code - then install it. When I open the app, it stops immediately. nothing in the log Very strange.

I am running this on a Samsung S7Edge with Android 7.0. Anything I am missing?
 
Upvote 0

brodmuehler

Active Member
Licensed User
Longtime User
I don't know. I hoe I just followed the instructions. I do not know how it should look like. That is a bit my problem. Perhaps you have an example I just could copy? I attached the latest zip again. And thanks a lot for the help. Great stuff. René
 

Attachments

  • IGCViewer.zip
    9.6 KB · Views: 284
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Why you have all these firebase code inside the manifest? You are not using Firebase messaging and also not firebase ads.

Go again over the tutorial and follow the instructions MORE correctly. I mean EXACT!

https://www.b4x.com/android/forum/threads/google-maps.63930/
See the B4A 6+ Spoiler and follow it EXACTLY.

If you want me to test your project i need to have your json file. You can send it to my email if you want. msy1912 {at} gmail.com
 
Upvote 0

brodmuehler

Active Member
Licensed User
Longtime User
Hi

you are obviously right and it works. So first of all thanks a lot. I thought I have to add all this firebase stuff in my manifest .... What should I say. Sorry for wasting your time.

Many thanks
Regards
René
 
Upvote 0
Top