Error inflating class fragment

android.view.InflateException: Binary XML file line #8: Error inflating class fragment
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:808)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:851)
at android.view.LayoutInflater.inflate(LayoutInflater.java:510)
at android.view.LayoutInflater.inflate(LayoutInflater.java:420)
at com.example.administrator.baba.Fragments.HomeFragment.getView(HomeFragment.java:96)
at android.support.v4.app.BackStackRecord.setFirstOut(BackStackRecord.java:813)
at android.support.v4.app.BackStackRecord.calculateFragments(BackStackRecord.java:885)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:719)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:536)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5743)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1077)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:843)
Caused by: java.lang.IllegalArgumentException: Binary XML file line #8: Duplicate id 0x7f0b0078, tag null, or parent id 0xffffffff with another fragment for com.example.administrator.baba.CycleViews.CycleViewPager
at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2146)
at android.app.Activity.onCreateView(Activity.java:5460)
at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:36)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:75)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:778)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:851) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:510) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:420) 
at com.example.administrator.baba.Fragments.HomeFragment.getView(HomeFragment.java:96) 
at android.support.v4.app.BackStackRecord.setFirstOut(BackStackRecord.java:813) 
at android.support.v4.app.BackStackRecord.calculateFragments(BackStackRecord.java:885)

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问