Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

MapsAndLocationDemo_v3 (Google Play Services) Resources+NotFoundException

$
0
0

Hi, using new solution V3 I can't push the user to update the Google Play Service like with V2. In function TestIfGooglePlayServicesIsInstalled(), at line Dialog errorDialog = GooglePlayServicesUtil.GetErrorDialog(queryResult, this, InstallGooglePlayServicesId); the exception throws every time. I try with map lib revision 9 and 10 and with Xamarin.Android 4.8.1 and 4.8.2.

Exception Details:

{Android.Content.Res.Resources+NotFoundException: Exception of type 'Android.Content.Res.Resources+NotFoundException' was thrown.
          at Android.Runtime.JNIEnv.CallStaticObjectMethod (IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00024] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.8.0-branch/b76e8ec4/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:767 
          at Android.Gms.Common.GooglePlayServicesUtil.GetErrorDialog (Int32 p0, Android.App.Activity p1, Int32 p2) [0x00000] in <filename unknown>:0 
          at SimpleMapDemo.MainActivity.TestIfGooglePlayServicesIsInstalled () [0x0006c] in c:\Users\Alex\Desktop\monodroid-samples-master\monodroid-samples-master\MapsAndLocationDemo_v3\SimpleMapDemo\MainActivity.cs:83 
          --- End of managed exception stack trace ---
        android.content.res.Resources$NotFoundException: String resource ID #0x7f05000c
            at android.content.res.Resources.getText(Resources.java:230)
            at android.content.res.Resources.getString(Resources.java:314)
            at com.google.android.gms.common.GooglePlayServicesUtil.a(Unknown Source)
            at com.google.android.gms.common.GooglePlayServicesUtil.a(Unknown Source)
            at com.google.android.gms.common.GooglePlayServicesUtil.getErrorDialog(Unknown Source)
            at simplemapdemo.MainActivity.n_onCreate(Native Method)
            at simplemapdemo.MainActivity.onCreate(MainActivity.java:30)
            at android.app.Activity.performCreate(Activity.java:5104)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
            at android.app.ActivityThread.access$600(ActivityThread.java:141)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:5041)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
            at dalvik.system.NativeStart.main(Native Method)
        }

Debug console:

08-12 01:20:01.250 W/GooglePlayServicesUtil( 2530): Google Play services out of date.  Requires 3225100 but found 2012110
08-12 01:20:09.206 E/SimpleMapDemo( 2530): There is a problem with Google Play Services on this device: 2 - SERVICE_VERSION_UPDATE_REQUIRED
08-12 01:20:20.034 W/ResourceType( 2530): getEntry failing because entryIndex 12 is beyond type entryCount 12
08-12 01:20:20.034 W/ResourceType( 2530): Failure getting entry for 0x7f05000c (t=4 e=12) in package 0 (error -2147483647)

Thanks!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>