java.lang.RuntimeException

Unable to start activity ComponentInfo{net.example.app/net.example.app.view.PreferencesActivity}: java.lang.RuntimeException: Content has view with id attribute 'android.R.id.list_container' that is not a ViewGroup class

Samebug tips1

Try loading the text file into a WebView, then printing the contents of the WebView.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4214

Stack trace

  • java.lang.RuntimeException: Unable to start activity ComponentInfo{net.example.app
  • et.example.app.view.PreferencesActivity}: java.lang.RuntimeException: Content has view with id attribute 'android.R.id.list_container' that is not a ViewGroup class at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2406) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2466) at android.app.ActivityThread.access$1200(ActivityThread.java:152) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5538) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

filipebatistafilipebatista
9 times, last one
SacchiSacchi
37 times, last one
Hiren AmaliyarHiren Amaliyar
2 times, last one
Indri YunitaIndri Yunita
252 times, last one
AravindAravind
9 times, last one
207 more bugmates