java.lang.RuntimeException: Your TabHost must have a TabWidget whose id attribute is 'android.R.id.tabs'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Nahid
, 1 year ago
Your TabHost must have a TabWidget whose id attribute is 'android.R.id.tabs'
via Stack Overflow by 2619
, 2 years ago
Your TabHost must have a TabWidget whose id attribute is 'android.R.id.tabs'
via Stack Overflow by Shubham Garg
, 2 years ago
Your TabHost must have a TabWidget whose id attribute is 'android.R.id.tabs'
via Stack Overflow by Code Mat
, 1 year ago
Your TabHost must have a TabWidget whose id attribute is 'android.R.id.tabs'
via Stack Overflow by shashi
, 2 years ago
Your TabHost must have a FrameLayout whose id attribute is 'android.R.id.tabcontent'
via Stack Overflow by Mark James
, 10 months ago
Your TabHost must have a FrameLayout whose id attribute is 'android.R.id.tabcontent'
java.lang.RuntimeException: Your TabHost must have a TabWidget whose id attribute is 'android.R.id.tabs'
at android.widget.TabHost.setup(TabHost.java:132)
at com.nahid.com.gsdambassadorpractice.fragment.Test.onCreateView(Test.java:85)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.