Android Question AndroidManifest.xml: Expected 7895000 but found 8487000

marcel

Active Member
Licensed User
Longtime User
Hi,

I am using the great FusedLocationProvider library v1.10 and the examples code in this post https://www.b4x.com/android/forum/threads/material-design-3-using-a-toolbar-as-actionbar.49053/

But now I get the error:

B4X:
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 7895000 but found 8487000.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

I think I have a conflict in the google play service library but I am not sure how to fix this...

Do I need to upgrade to the latest? Do I need to upgrade the FusedLocation Provider to 1.3? I am lost here...
 

marcel

Active Member
Licensed User
Longtime User
I have installed the latest version of google play services. Same error. Do I need to upgrade the FusedLocationProvider to 1.3?
 
Upvote 0

marcel

Active Member
Licensed User
Longtime User
That is wierd as I copied this jar file from the same directory tree as the resources are:

This is in B4A:

B4X:
    #AdditionalRes: D:\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
    #AdditionalRes: ..\resource
    #AdditionalRes: D:\Android\libraries\Resources\b4a_appcompat, de.amberhome.objects.appcompat
    #AdditionalRes: D:\Android\android-sdk\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
    #Extends: android.support.v7.app.ActionBarActivity

So where is the mismatch? I am not sure I understand.
 
Upvote 0

marcel

Active Member
Licensed User
Longtime User
Aha, I am making progress :)

B4X:
locationservice_service_create (java line: 225)
java.lang.NoSuchMethodError: com.google.android.gms.common.api.GoogleApiClient.connect
    at uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper.Connect(FusedLocationProviderWrapper.java:147)
    at b4a.example.locationservice._service_create(locationservice.java:225)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
    at b4a.example.locationservice.onCreate(locationservice.java:53)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2589)
    at android.app.ActivityThread.access$1800(ActivityThread.java:144)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1287)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5139)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
    at dalvik.system.NativeStart.main(Native Method)

Now I need to update the fusedLocation Provider?
 
Upvote 0
Top