I have been studying this problem for a couple of days and have tried everything that SO has offered without success.
When I follow the Google instructions here , I have no problem getting a shared Google Map displayed in a custom map fragment ( QMapFragment ) that extends SupportMapFragment under my FragmentActivity.
(Side note: even if I provide a dummy API key, such as "abcd", in Manifest.xml, the map still displays just fine. I'm confused, but anyway ...)
But when I add a QMapFragment as a child fragment to another user fragment, for example with the following code:
mFrag = QMapFragment.newInstance(new LatLng(location.getLatitude(), location.getLongitude())); FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); transaction.add(R.id.framelayout, mFrag).commit();
I see a blank screen with zoom controls that are added to the fragment, and I get this in LogCat
08-08 13:44:25.914: W/dalvikvm(7057): VFY: unable to resolve instance field 30 08-08 13:44:25.914: D/dalvikvm(7057): VFY: replacing opcode 0x52 at 0x0012 08-08 13:44:25.914: D/dalvikvm(7057): VFY: dead code 0x0014-0018 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b (Landroid/content/res/Resources;)Z 08-08 13:44:26.000: I/dalvikvm(7057): Total arena pages for JIT: 11 08-08 13:44:26.180: W/dalvikvm(7057): Unable to resolve superclass of Lmaps/p/w; (734) 08-08 13:44:26.180: W/dalvikvm(7057): Link of class 'Lmaps/p/w;' failed 08-08 13:44:26.180: W/dalvikvm(7057): Unable to resolve superclass of Lmaps/ap/as; (6056) 08-08 13:44:26.180: W/dalvikvm(7057): Link of class 'Lmaps/ap/as;' failed 08-08 13:44:26.180: W/dalvikvm(7057): Unable to resolve superclass of Lmaps/af/k; (5085) 08-08 13:44:26.180: W/dalvikvm(7057): Link of class 'Lmaps/af/k;' failed 08-08 13:44:26.187: E/dalvikvm(7057): Could not find class 'maps.af.k', referenced from method maps.ag.an.a 08-08 13:44:26.187: W/dalvikvm(7057): VFY: unable to resolve new-instance 4928 (Lmaps/af/k;) in Lmaps/ag/an;
Property Screenshot
And no, I do not get the "Authorization Failure" from the debugger, and my console is installed in Google Android v2 in the Google API.
source share