Take a look at my newer thread:
https://groups.google.com/group/android-developers/browse_thread/thread/4568ef3e42fb23f8

I added the support library and used SupportMapFragment and still an
issue.

On Apr 17, 3:32 pm, Doug <[email protected]> wrote:
> > Binary XML file line #6: Error inflating class fragment
>
> Fragments are not available in GB unless you are using the compatibility
> library and using only the fragment objects and activities available
> through it.
>
> Doug
>
>
>
>
>
>
>
> On Tuesday, April 16, 2013 2:48:06 PM UTC-7, John Merlino wrote:
>
> > I have an app which uses google maps api v2. Works fine in api level
> > 15, but in api level 10 (gingerbread) on the real device it says there
> > is no support. When I try to run on gingerbread emulator, I get the
> > following error:
>
> > 04-16 17:42:00.928: E/AndroidRuntime(363): FATAL EXCEPTION: main
> > 04-16 17:42:00.928: E/AndroidRuntime(363): java.lang.RuntimeException:
> > Unable to start activity ComponentInfo{com.otl.AndroidRemoteApp1/
> > com.otl.AndroidRemoteApp.ShowMapActivity}:
> > android.view.InflateException: Binary XML file line #6: Error
> > inflating class fragment
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 1647)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > 1663)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.app.ActivityThread.access$1500(ActivityThread.java:117)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.os.Looper.loop(Looper.java:130)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.app.ActivityThread.main(ActivityThread.java:3683)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > java.lang.reflect.Method.invoke(Method.java:507)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:839)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > dalvik.system.NativeStart.main(Native Method)
> > 04-16 17:42:00.928: E/AndroidRuntime(363): Caused by:
> > android.view.InflateException: Binary XML file line #6: Error
> > inflating class fragment
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:408)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.jav 
> > a:
>
> > 207)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.app.Activity.setContentView(Activity.java:1657)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > com.otl.AndroidRemoteApp.ShowMapActivity.onCreate(ShowMapActivity.java:
> > 45)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> > 1047)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 1611)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         ... 11 more
> > 04-16 17:42:00.928: E/AndroidRuntime(363): Caused by:
> > java.lang.ClassNotFoundException: android.view.fragment in loader
> > dalvik.system.PathClassLoader[/system/framework/
> > com.google.android.maps.jar:/data/app/com.otl.AndroidRemoteApp1-2.apk]
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:551)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:511)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.view.LayoutInflater.createView(LayoutInflater.java:471)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.view.LayoutInflater.onCreateView(LayoutInflater.java:549)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayo 
> > utInflater.java:
>
> > 66)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         at
> > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
> > 04-16 17:42:00.928: E/AndroidRuntime(363):         ... 20 more
>
> > Anyone understands this error message?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to