Android Question B4A 6.0 and Google Play Services

RVP

Active Member
Licensed User
Longtime User
I have been reading threads for a couple of hours now, and am not getting this correct. I am trying to use the FusedLocationProvider Library (V1.31) and I get an error when I try to compile
B4X:
Copying libraries resources    Error
Could not find file 'C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\google-play-services.jar'.

I have installed Google Repository 31 and Android Support Repository 35


I have the following in my Manifest

B4X:
'************ Google Play Services Base ************
AddApplicationText(
   <activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
  android:theme="@android:style/Theme.Translucent.NoTitleBar"
  android:exported="false"/>
    <meta-data
  android:name="com.google.android.gms.version"
  android:value="@integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************

And the following in my Main
B4X:
    #AdditionalJar: com.google.android.gms:play-services-location                                                                                                                                                                                                                                                                                                                    

    #ExcludeClasses: .games, .drive, .ads, .fitness, .wearable, .measurement, .cast, .auth, .nearby
  #ExcludeClasses: .tagmanager, .analytics, .wallet, .plus, .vision, .gcm, .maps, .panorama

I cannot find the referenced google-play-services.jar anywhere in the android folder and as I understand it, it should not be required with 6.0 in any case.

What am I missing?
 

DonManfred

Expert
Licensed User
Longtime User
What am I missing?
i think you forget to install the two repositories in sdk manager (see b4a 6 setup guide)?

Additional you can remove the exludeclasses as the maven repos are splitted already.

It is recommended to switch from referencing the complete google play services to referencing the required features. Overall it is simpler as the #AdditionalRes and #ExcludeClasses are no longer required.
 
Upvote 0

RVP

Active Member
Licensed User
Longtime User
Well I had downloaded the new library, but I forgot to remove it from my project and add it back in.

It is working now.

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