Bug 18082 - Google Maps Fragment broken after upgrading to 4.12.0
Summary: Google Maps Fragment broken after upgrading to 4.12.0
Status: RESOLVED NORESPONSE
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.12.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Radek Doulik
URL:
Depends on:
Blocks:
 
Reported: 2014-02-28 07:49 UTC by taquet_karim
Modified: 2017-08-23 21:11 UTC (History)
5 users (show)

Tags: bb
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description taquet_karim 2014-02-28 07:49:10 UTC
After upgrading to Xamarin.Android 4.12.0, we are facing issues with the Google Maps Fragment. The application now constantly crashes when opening the Activity containing the MapFragment.

MapFragment:

<fragment
            android:id="@+id/googleMapsFragment"
            android:layout_width="match_parent"
            android:layout_height="184.1dp"
            class="com.google.android.gms.maps.MapFragment"
            android:layout_marginBottom="0.0dp" />

Permissions:

	<uses-permission android:name="android.permission.INTERNET" />
	<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
	<uses-permission android:name="demoContact.permission.MAPS_RECEIVE" />
	<permission android:name="demoContact.permission.MAPS_RECEIVE" android:protectionLevel="signature" />
	<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />  
	<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
	<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

Error:
java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable)

Full Output:


02-28 12:15:35.546 W/dalvikvm( 3057): VFY: unable to resolve static field 133 (MapAttrs) in Lcom/google/android/gms/R$styleable;
02-28 12:15:35.546 D/dalvikvm( 3057): VFY: replacing opcode 0x62 at 0x000e
An unhandled exception occured.
02-28 12:15:44.430 I/MonoDroid( 3057): UNHANDLED EXCEPTION: Java.Lang.NoClassDefFoundError: Exception of type 'Java.Lang.NoClassDefFoundError' was thrown.
02-28 12:15:44.430 I/MonoDroid( 3057): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue[]) [0x00084] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/98634deb/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:895
02-28 12:15:44.430 I/MonoDroid( 3057): at Android.App.Activity.SetContentView (int) [0x00070] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/98634deb/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.App.Activity.cs:3830
02-28 12:15:44.430 I/MonoDroid( 3057): at DemoContact.DetailsContactActivity.OnCreate (Android.OS.Bundle) [0x00009] in c:\Git\XamarinContactDemo\AndroidApplication1\DetailsContactActivity.cs:38
02-28 12:15:44.430 I/MonoDroid( 3057): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/98634deb/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.App.Activity.cs:1943
02-28 12:15:44.430 I/MonoDroid( 3057): at (wrapper dynamic-method) object.812a50f7-7d96-498c-9c15-adb1dc175a9f (intptr,intptr,intptr) <IL 0x00017, 0x0001f>
02-28 12:15:44.430 I/MonoDroid( 3057): 
02-28 12:15:44.430 I/MonoDroid( 3057):   --- End of managed exception stack trace ---
02-28 12:15:44.430 I/MonoDroid( 3057): java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable
02-28 12:15:44.430 I/MonoDroid( 3057): 	at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at com.google.android.gms.maps.MapFragment.onInflate(Unknown Source)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.Activity.onCreateView(Activity.java:4745)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:689)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.Activity.setContentView(Activity.java:1895)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at democontact.DetailsContactActivity.n_onCreate(Native Method)
In mgmain JNI_OnLoad
02-28 12:15:44.430 I/MonoDroid( 3057): 	at democontact.DetailsContactActivity.onCreate(DetailsContactActivity.java:31)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.Activity.performCreate(Activity.java:5133)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.ActivityThread.access$600(ActivityThread.java:141)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.os.Handler.dispatchMessage(Handler.java:99)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.os.Looper.loop(Looper.java:137)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at android.app.ActivityThread.main(ActivityThread.java:5103)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at java.lang.reflect.Method.invokeNative(Native Method)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at java.lang.reflect.Method.invoke(Method.java:525)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
02-28 12:15:44.430 I/MonoDroid( 3057): 	at dalvik.system.NativeStart.main(Native Method)
02-28 12:15:44.526 W/dalvikvm( 3057): JNI WARNING: JNI method called with exception pending
02-28 12:15:44.526 W/dalvikvm( 3057):              in Ldemocontact/DetailsContactActivity;.n_onCreate:(Landroid/os/Bundle;)V (GetMethodID)
02-28 12:15:44.526 W/dalvikvm( 3057): Pending exception is:
02-28 12:15:44.526 I/dalvikvm( 3057): java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable
02-28 12:15:44.526 I/dalvikvm( 3057):   (raw stack trace not found)
02-28 12:15:44.526 I/dalvikvm( 3057): "main" prio=5 tid=1 NATIVE
02-28 12:15:44.526 I/dalvikvm( 3057):   | group="main" sCount=0 dsCount=0 obj=0xa4b72480 self=0xb8135b90
02-28 12:15:44.526 I/dalvikvm( 3057):   | sysTid=3057 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=-1217277920
02-28 12:15:44.526 I/dalvikvm( 3057):   | state=R schedstat=( 1330678135 3129223606 2489 ) utm=28 stm=104 core=0
02-28 12:15:44.538 I/dalvikvm( 3057):   #00  pc 000bb596  /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+86)
02-28 12:15:44.538 I/dalvikvm( 3057):   #01  pc 000964e3  /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+1155)
02-28 12:15:44.542 I/dalvikvm( 3057):   #02  pc 000967d6  /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+86)
02-28 12:15:44.546 I/dalvikvm( 3057):   #03  pc 0004b434  /system/lib/libdvm.so
02-28 12:15:44.546 I/dalvikvm( 3057):   #04  pc 0005e305  /system/lib/libdvm.so
02-28 12:15:44.550 I/dalvikvm( 3057):   #05  pc 0001ad0f  <unknown>
02-28 12:15:44.554 I/dalvikvm( 3057):   at democontact.DetailsContactActivity.n_onCreate(Native Method)
02-28 12:15:44.554 I/dalvikvm( 3057):   at democontact.DetailsContactActivity.onCreate(DetailsContactActivity.java:31)
02-28 12:15:44.558 I/dalvikvm( 3057):   at android.app.Activity.performCreate(Activity.java:5133)
02-28 12:15:44.558 I/dalvikvm( 3057):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
02-28 12:15:44.558 I/dalvikvm( 3057):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
02-28 12:15:44.558 I/dalvikvm( 3057):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
02-28 12:15:44.562 I/dalvikvm( 3057):   at android.app.ActivityThread.access$600(ActivityThread.java:141)
02-28 12:15:44.562 I/dalvikvm( 3057):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
02-28 12:15:44.562 I/dalvikvm( 3057):   at android.os.Handler.dispatchMessage(Handler.java:99)
02-28 12:15:44.562 I/dalvikvm( 3057):   at android.os.Looper.loop(Looper.java:137)
02-28 12:15:44.562 I/dalvikvm( 3057):   at android.app.ActivityThread.main(ActivityThread.java:5103)
02-28 12:15:44.566 I/dalvikvm( 3057):   at java.lang.reflect.Method.invokeNative(Native Method)
02-28 12:15:44.566 I/dalvikvm( 3057):   at java.lang.reflect.Method.invoke(Method.java:525)
02-28 12:15:44.566 I/dalvikvm( 3057):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
02-28 12:15:44.570 I/dalvikvm( 3057):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
02-28 12:15:44.570 I/dalvikvm( 3057):   at dalvik.system.NativeStart.main(Native Method)
02-28 12:15:44.570 I/dalvikvm( 3057): 
02-28 12:15:44.570 E/dalvikvm( 3057): VM aborting
02-28 12:15:44.570 E/mono-rt ( 3057): Stacktrace:
02-28 12:15:44.570 E/mono-rt ( 3057): 
02-28 12:15:44.574 E/mono-rt ( 3057):   at <unknown> <0xffffffff>
02-28 12:15:44.578 E/mono-rt ( 3057):   at (wrapper managed-to-native) object.wrapper_native_0xb600e2b0 (intptr,intptr,string,string) <IL 0x0004c, 0xffffffff>
02-28 12:15:44.582 E/mono-rt ( 3057):   at Android.Runtime.JNIEnv.GetMethodID (intptr,string,string) [0x00042] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/98634deb/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:157
02-28 12:15:44.582 E/mono-rt ( 3057):   at Java.Lang.Throwable.get_Message () [0x00014] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/98634deb/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Java.Lang.Throwable.cs:231
02-28 12:15:44.582 E/mono-rt ( 3057):   at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
02-28 12:15:44.586 E/mono-rt ( 3057):   at <unknown> <0xffffffff>
02-28 12:15:44.586 E/mono-rt ( 3057):   at (wrapper dynamic-method) object.812a50f7-7d96-498c-9c15-adb1dc175a9f (intptr,intptr,intptr) <IL 0x00034, 0x00073>
02-28 12:15:44.590 E/mono-rt ( 3057):   at (wrapper native-to-managed) object.812a50f7-7d96-498c-9c15-adb1dc175a9f (intptr,intptr,intptr) <IL 0x00023, 0xffffffff>
02-28 12:15:44.594 E/mono-rt ( 3057): 
02-28 12:15:44.594 E/mono-rt ( 3057): =================================================================
02-28 12:15:44.594 E/mono-rt ( 3057): Got a SIGSEGV while executing native code. This usually indicates
02-28 12:15:44.594 E/mono-rt ( 3057): a fatal error in the mono runtime or one of the native libraries 
02-28 12:15:44.594 E/mono-rt ( 3057): used by your application.
02-28 12:15:44.594 E/mono-rt ( 3057): =================================================================
02-28 12:15:44.594 E/mono-rt ( 3057): 
Unhandled Exception:

Java.Lang.NoClassDefFoundError: Loading...
The program 'Mono' has exited with code 0 (0x0).

Thanks in advance for investigating!
Comment 1 Atsushi Eno 2014-03-03 01:38:57 UTC
rodo: this seems to be another additional resource retrieval issue.

> Error: java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable)
Comment 2 taquet_karim 2014-03-03 05:35:32 UTC
It's not clear to me if you mean this is a bug/issue in our app or an issue with Xamarin? We did not touch the activity in which we now have this issue.
Comment 3 Atsushi Eno 2014-03-03 22:39:38 UTC
To make it clear, "FooBar:" in general means some message directed to specific person. In this case "rodo:" means message directed to specific person in our dev. team.
Comment 4 Tom Opgenorth 2017-06-28 19:14:26 UTC
Thank you for taking the time to submit the bug. We are unable to reproduce this issue. Please attach a reproduction to the bug by starting with a clean Xamarin.Android project and adding just the code necessary to demonstrate the issue.
Comment 5 Cody Beyer (MSFT) 2017-08-23 21:11:32 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!