如果这是一个错误的地方提出这个问题,请指导我到一个更合适的位置.
我正在Eclipse中开发一个Android项目.当我尝试在图形视图中查看首选项布局时,我不断收到此错误:
ClassCastException: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
这是我的preferences.xml:
android:defaultValue="true" android:key="default_categories" />
android:defaultValue="@string/pref_export_defaultemail"
android:title="Email Address" android:summary="@string/pref_export_emailsummary" />
android:defaultValue="@string/pref_export_defaultfilename"
android:title="Filename Prefix" android:summary="@string/pref_export_filenamesummary" />
我不能为我的生活弄清楚它在谈论什么,我与谷歌的搜索没有拿出任何实质性的东西.