本文介绍了Android 3.2 HONEYCOMB使用谷歌地图导航抽屉但不适用于Android 5.0及更多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 我创建了一个Android应用程序3.2 - > 23它使用谷歌地图。第一个布局是登录,然后用户将移动到显示地图的第二个布局。 它在我的设备4.3上正常工作但问题出现时我尝试在5.0以上的设备上运行它。如果用户成功登录,应用程序将直接关闭。 LogCat: 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:FATAL EXCEPTION:main 04-13 09:53:14.849 26311-26311 / example .com.example E / AndroidRuntime:进程:example.com.example,PID:26311 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:java。 lang.RuntimeException:无法启动活动ComponentInfo {example.com.example / example.com.example.customer_home}:android.view.InflateException:二进制XML文件行#8:二进制XML文件行#2:二进制XML文件行# 2:错误膨胀类片段 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3254) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.handleLaunchActivity(ActivityThread.jav a:3350) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.access $ 1100(ActivityThread.java:222) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1795) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.os.Handler.dispatchMessage(Handler.java:102) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.os.Looper.loop(Looper.java:158) 04-13 09:53:14.849 26311 -26311 / example.com.example E / AndroidRuntime:在android.app.ActivityThread.main(ActivityThread.java:7229) 04-13 09:53:14.849 26311-26311 / example.com .example E / AndroidRuntime:at java.lang.reflect.Method.invoke(Native Method) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit $ MethodAndArgsCall er.run(ZygoteInit.java:1230) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit。 main(ZygoteInit.java:1120) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:引起:android.view.InflateException:二进制XML文件行#8:二进制XML文件行#2:二进制XML文件行#2:错误膨胀类片段 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.inflate(LayoutInflater.java:551) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater .inflate(LayoutInflater.java:429) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.inflate(LayoutInflater.java :380) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.support.v7.app.AppCompatDelegateImplV7.setContentView( AppCompatDelegateImplV7.java:255) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity。 java:109) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at example.com.example.customer_home.onCreate(customer_home.java:89) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.Activity.performCreate(Activity.java:6876) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) 04-13 09 :53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207) 04-13 09:53:14.849 26311- 26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350) 04 -13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.ActivityThread.access $ 1100(ActivityThread.java:222) 04-13 09:53 :14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1795) 04-13 09:53:14.849 26311- 26311 / example.com.example E / AndroidRuntime:在android.os.Handler.dispatchMessage(Handler.java:102) 04-13 09:53:14.849 26311-26311 / example.com。示例E / AndroidRuntime:在android.os.Looper.loop(Looper.java:158) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.main(ActivityThread.java:7229) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at java.lang.reflect。 Method.invoke(原生方法) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteIn it.java:1230) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit.main(ZygoteInit。 java:1120) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:引起:android.view.InflateException:二进制XML文件行#2:二进制XML文件行#2:错误膨胀类片段 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.inflate(LayoutInflater。 java:551) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.inflate(LayoutInflater.java:429) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at example.com.example.customerFragmentMap.onCreateView(customerFragmentMap.java:18) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.Fragment.performCreateView(Fragment.java:2281) 04-13 09 : 53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.FragmentManagerImpl.moveToState(FragmentManager.java:954) 04-13 09:53:14.849 26311-26311 /example.com.example E / AndroidRuntime:在android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1141) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1245) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android .app.FragmentManagerImpl.onCreateView(FragmentManager.java:2218) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.FragmentController.onCreateView (FragmentController.java:98) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.Activity.onCreateView(Activity.java:6070 ) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at a ndroid.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:34) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android。 support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:78) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view。 LayoutInflater.createViewFromTag(LayoutInflater.java:766) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.createViewFromTag(LayoutInflater。 java:716) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflate(LayoutInflater.java:847)br /> 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutIn flater.parseInclude(LayoutInflater.java:1001) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflate(LayoutInflater。 java:843) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1001) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.rInflate(LayoutInflater.java:843) 04-13 09:53 :14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.inflate(LayoutInflater.java:527) 04-13 09:53:14.849 26311-2631 1 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.inflate(LayoutInflater.java:429) 04-13 09:53:14.849 26311-26311 / example.com。示例E / AndroidRuntime:在android.view.LayoutInflater.inflate(LayoutInflater.java:380) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:255) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android。 support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at example.com。 example.customer_home.onCreate(customer_home.java:89) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.Activity.performCreate( Activity.java:6876) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at a an droid.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread。 performLaunchActivity(ActivityThread.java:3207) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 3350) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.access $ 1100(ActivityThread.java:222) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1795) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.os.Handler.dispatchMessage(Handler.java:102) 04-13 09: 53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.os.Looper.loop(Looper.java:158) 04-13 09:53 :14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.ActivityThread.main(ActivityThread.java:7229) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at java.lang.reflect.Method.invoke(Native Method) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1230) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:引起:android.view.InflateException:二进制XML文件行#2:错误膨胀类片段 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:a t android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater .inflate(LayoutInflater.java:498) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.inflate(LayoutInflater.java :429) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at example.com.example.customerFragmentMap.onCreateView(customerFragmentMap.java:18) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.Fragment.performCreateView(Fragment.java:2281) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.FragmentManagerImpl.moveToState(FragmentManager.java:954) 04-13 09: 53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.FragmentManagerImpl.moveToState(FragmentManager.java:114 1) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1245) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2218) 04- 13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.FragmentController.onCreateView(FragmentController.java:98) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.Activity.onCreateView(Activity.java:6070) 04-13 09:53:14.849 26311-26311 / example。 com.example E / AndroidRuntime:在android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:34) 04-13 09:53:14.849 26311-26311 / example.com。示例E / AndroidRuntime:在android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:78) 04-1 3 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:766) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716) 04-13 09:53:14.849 26311-26311 / example。 com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflate(LayoutInflater.java:847) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime :在android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view。 LayoutInflater.parseInclude(LayoutInflater.java:1001) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflate(LayoutInflater。 java:843) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater .parseInclude(LayoutInflater.java:1001) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflate(LayoutInflater.java :843) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.inflate(LayoutInflater.java:527) 04 -13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.inflate(LayoutInflater.java:429) 04-13 09:53: 14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.view.LayoutInflater.inflate(LayoutInflater.java:380) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:255) 04-13 09: 53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109) 04-13 09:53: 14.849 26311-26311 / example.com.example E / AndroidRuntime:at example.com.example.customer_home.onCreate(customer_home.java:89) 04-13 09:53:14.849 26311-26311 /example.com.example E / AndroidRuntime:在android.app.Activity.performCreate(Activity.java:6876) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android .app.ActivityThread.performLaunchActivity(ActivityThread.java:3207) 04-13 09:53:14.849 26311- 26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350) 04-13 09:53:14.849 26311-26311 / example.com。示例E / AndroidRuntime:在android.app.ActivityThread.access $ 1100(ActivityThread.java:222) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1795) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.os .Handler.dispatchMessage(Handler.java:102) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.os.Looper.loop(Looper) .java:158) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.main(ActivityThread.java:7229) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at java.lang.reflect.Method.invoke(Native Method) 04-1 3 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1230) 04- 13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 04-13 09 :53:14.849 26311-26311 / example.com.example E / AndroidRuntime:引起:android.app.Fragment $ InstantiationException:试图实例化 04-13 09:53:32.479 26311-26311 /example.com.example I / Process:发送信号。 PID:26311 SIG:9 我尝试过: 我试图在不同的设备上运行该应用程序,结果是: Android 5.0:关闭 Android 6.0.1:关闭 Android 4.3:工作正常 Android 4.4.2:工作正常 Android 5.0.1:关闭I have created an Android application 3.2 -> 23 and it uses Google Maps. The first layout is a login and then the user will move to the second layout which display the map.It works fine on my device 4.3 but the problem appear when the I try to run it on devices 5.0 and more than. If the user successfully logs in, the application directly closed.LogCat:04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: FATAL EXCEPTION: main04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: Process: example.com.example, PID: 2631104-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{example.com.example/example.com.example.customer_home}: android.view.InflateException: Binary XML file line #8: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3254)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:222)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Looper.loop(Looper.java:158)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #8: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:551)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:429)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:380)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:255)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at example.com.example.customer_home.onCreate(customer_home.java:89)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6876)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:222)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Looper.loop(Looper.java:158)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:551)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:429)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at example.com.example.customerFragmentMap.onCreateView(customerFragmentMap.java:18)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Fragment.performCreateView(Fragment.java:2281)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:954)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1141)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1245)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2218)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentController.onCreateView(FragmentController.java:98)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Activity.onCreateView(Activity.java:6070)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:34)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:78)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:766)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:847)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1001)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:843)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1001)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:843)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:527)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:429)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:380)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:255)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at example.com.example.customer_home.onCreate(customer_home.java:89)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6876)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:222)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Looper.loop(Looper.java:158)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class fragment04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:498)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:429)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at example.com.example.customerFragmentMap.onCreateView(customerFragmentMap.java:18)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Fragment.performCreateView(Fragment.java:2281)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:954)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1141)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1245)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2218)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.FragmentController.onCreateView(FragmentController.java:98)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Activity.onCreateView(Activity.java:6070)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:34)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:78)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:766)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:847)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1001)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:843)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1001)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:843)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:527)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:429)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:380)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:255)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at example.com.example.customer_home.onCreate(customer_home.java:89)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6876)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:222)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Looper.loop(Looper.java:158)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: Caused by: android.app.Fragment$InstantiationException: Trying to instantiate04-13 09:53:32.479 26311-26311/example.com.example I/Process: Sending signal. PID: 26311 SIG: 9What I have tried:I have tried to run the application on different devices the result was:Android 5.0 : closedAndroid 6.0.1: closedAndroid 4.3 : worked fineAndroid 4.4.2: worked fineAndroid 5.0.1: closed推荐答案 1100(ActivityThread.java:222) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread1100(ActivityThread.java:222)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread H.handleMessage(ActivityThread.java:1795) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.os.Handler.dispatchMessage(Handler.java:102) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.os.Looper .loop(Looper.java:158) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.main( ActivityThread.java:7229) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at java.lang.reflect.Method.invoke(Native Method) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInitH.handleMessage(ActivityThread.java:1795)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.os.Looper.loop(Looper.java:158)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit MethodAndArgsCaller .run(ZygoteInit.java:1230) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:引起:android.view.InflateException:二进制XML文件行# 8:二进制XML文件行#2:二进制XML文件行#2:错误扩充类片段 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.inflate(LayoutInflater.java:551) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater。在flate(LayoutInflater.java:429) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.view.LayoutInflater.inflate(LayoutInflater.java: 380) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:255) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at example.com.example.customer_home.onCreate(customer_home.java:89) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.Activity.performCreate(Activity.java:6876) 04-13 09 :53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) 04-13 09:53:14.849 26311-26311 / example.com.example E / AndroidRuntime:在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207) 04-13 09: 53:14.849 26311-26311 / example.com.example E / AndroidRuntime:at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350) 04-13 09:53:14.849 26311-26311 /example.com.example E / AndroidRuntime:在android.app.ActivityThread.accessMethodAndArgsCaller.run(ZygoteInit.java:1230)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #8: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:551)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:429)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:380)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:255)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at example.com.example.customer_home.onCreate(customer_home.java:89)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6876)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)04-13 09:53:14.849 26311-26311/example.com.example E/AndroidRuntime: at android.app.ActivityThread.access 这篇关于Android 3.2 HONEYCOMB使用谷歌地图导航抽屉但不适用于Android 5.0及更多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-06 18:49