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

Google Maps v2 - Android 4.2.2 w/Google Play Services (Froyo) Rev 10

$
0
0

Hello,

I'm trying work through an issue that came up with testing on a stock Nexus 4 - and utilizing the SupportMapFragment with the Google Play Services (Froyo) Rev 10 component. We're targeting 2.3 and higher devices so we're using the v4 support libraries as well.

For some reason - the map loads up and is pan-able, zoom-able, and has the current location marked on other devices (Droid X - 2.3.4, Trasnformer Tablet - 4.0.3, Droid Bionic - 4.1.2, Galaxy S4 - 4.1.2) but on a new Nexus 4 running 4.2.2 I run into all sorts of issues. The issue first showed up as an inflate error with the full app. I've since walked down the line creating a very simple Map Activity - that just tries to load the map and I get the following error (full stack below) - these are what jumped out at me:

The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. Google Play services out of date. Requires 3225100 but found 2012110 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.koa.mobileapp/simplemapdemo.MapWithMarkersActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x7f05000c Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x7f050009

It's most likely an issue with me being unfamiliar with the Google Play Services. I started to go through the project linking tutorial on how to setup the Google Play Services - but couldn't get the ANT project to compile through visual studio - so I pulled in the Google Play Services (Froyo) Rev 10 component from the component library. It seemed to work as expected - until I tested on the Nexus 4. I've tried projects in Xamarin Studio as well as Visual Studio.

Out of simplicity sake - I also tried a simple 4.2 project with the Google Play Services Rev 10 - and it throws the same error. I've also tried other demo projects - MapsAndLocationDemo - which work on the Bionic, but fail on the Nexus.

Am I referencing the Google Play Service incorrectly (just adding a reference to GooglePlayServicesLib.dll or GooglePlayServicesFroyoLib.dll from the Component)? Do I need to go back to square one and build my own Java Binding Library as referenced in MapsAndLocationDemo_v2 in the README.md?

Why would the app work on all the other devices, but fail on the Nexus 4? Are the other devices more forgiving - maybe I don't have the GooglePlayServices reference correctly? I'm sure I'll need to pass along more information - but maybe just an overview of what I may be missing could help.

Anyhow - any help or direction would be greatly appreciated!

Jamey


Forwarding debugger port 8885
Forwarding console port 8886
Detecting existing process
[libc] WARNING: generic atexit() called from legacy shared library
[monodroid-gc] GREF GC Threshold: 46800
Loaded assembly: /data/data/TestMapApp.TestMapApp/files/.__override__/com.koa.mobileapp.dll
Loaded assembly: /data/data/TestMapApp.TestMapApp/files/.__override__/GooglePlayServicesFroyoLib.dll [External]
Loaded assembly: Mono.Android.Support.v4.dll [External]
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: System.Core.dll [External]
Loaded assembly: MonoDroidConstructors [External]
[ResourceType] getEntry failing because entryIndex 9 is beyond type entryCount 6
[ResourceType] Failure getting entry for 0x7f050009 (t=4 e=9) in package 0 (error -2147483647)
[GooglePlayServicesUtil] The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
[GooglePlayServicesUtil] Google Play services out of date.  Requires 3225100 but found 2012110
[ResourceType] getEntry failing because entryIndex 9 is beyond type entryCount 6
[ResourceType] Failure getting entry for 0x7f050009 (t=4 e=9) in package 0 (error -2147483647)
[GooglePlayServicesUtil] The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
[GooglePlayServicesUtil] Google Play services out of date.  Requires 3225100 but found 2012110
[ResourceType] getEntry failing because entryIndex 9 is beyond type entryCount 6
[ResourceType] Failure getting entry for 0x7f050009 (t=4 e=9) in package 0 (error -2147483647)
[GooglePlayServicesUtil] The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
[GooglePlayServicesUtil] Google Play services out of date.  Requires 3225100 but found 2012110
[ResourceType] getEntry failing because entryIndex 9 is beyond type entryCount 6
[ResourceType] Failure getting entry for 0x7f050009 (t=4 e=9) in package 0 (error -2147483647)
[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] java.lang.RuntimeException: Unable to start activity ComponentInfo{TestMapApp.TestMapApp/testmapapp.MainActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x7f050009
[AndroidRuntime]    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
[AndroidRuntime]    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
[AndroidRuntime]    at android.app.ActivityThread.access$600(ActivityThread.java:141)
[AndroidRuntime]    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
[AndroidRuntime]    at android.os.Handler.dispatchMessage(Handler.java:99)
[AndroidRuntime]    at android.os.Looper.loop(Looper.java:137)
[AndroidRuntime]    at android.app.ActivityThread.main(ActivityThread.java:5041)
[AndroidRuntime]    at java.lang.reflect.Method.invokeNative(Native Method)
[AndroidRuntime]    at java.lang.reflect.Method.invoke(Method.java:511)
[AndroidRuntime]    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
[AndroidRuntime]    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
[AndroidRuntime]    at dalvik.system.NativeStart.main(Native Method)
[AndroidRuntime] Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x7f050009
[AndroidRuntime]    at android.content.res.Resources.getText(Resources.java:230)
[AndroidRuntime]    at android.content.res.Resources.getString(Resources.java:314)
[AndroidRuntime]    at com.google.android.gms.common.GooglePlayServicesUtil.b(Unknown Source)
[AndroidRuntime]    at com.google.android.gms.internal.bh.a(Unknown Source)
[AndroidRuntime]    at com.google.android.gms.internal.bh.onCreateView(Unknown Source)
[AndroidRuntime]    at com.google.android.gms.maps.SupportMapFragment.onCreateView(Unknown Source)
[AndroidRuntime]    at android.support.v4.app.Fragment.performCreateView(Fragment.java:1460)
[AndroidRuntime]    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:911)
[AndroidRuntime]    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1088)
[AndroidRuntime]    at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
[AndroidRuntime]    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1444)
[AndroidRuntime]    at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:551)
[AndroidRuntime]    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1164)
[AndroidRuntime]    at android.app.Activity.performStart(Activity.java:5114)
[AndroidRuntime]    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2153)
[AndroidRuntime]    ... 11 more



Viewing all articles
Browse latest Browse all 204402

Trending Articles



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