任何人都知道这个错误对android标签意味着什么? [英] Anyone know what this error mean for android tabs?
问题描述
我正在尝试在线试用教程,并希望将选项卡放入布局 xml.我已将扩展从 Activity 更改为 TabActivity.在布局 xml 的设计视图中,我有以下内容.
I am trying to try out the tutorial online and wanted to put the tab to the layout xml. I have change the extends from Activity to TabActivity. In the design view of the layout xml, I have the below.
后充气过程中的错误:TabHost 需要一个 ID 为android:id/tabs"的 TabWidget.使用 id 'tabs' 找到的视图是 'com.android.layoutlib.bridge.MockView'找不到以下类:
Error during post inflation process: TabHost requires a TabWidget with id "android:id/tabs". View found with id 'tabs' is 'com.android.layoutlib.bridge.MockView' The following classes could not be found:
我一直在寻找解决方案,但除了我找到一种不同语言的解决方案外,没有一个能解决.我尝试在谷歌上使用翻译器,但没有太大帮助.
I have looked for solution but none of them fixed except I found one in different language. I tried using the translator on google but not so helpful.
有没有人设法获得标签功能.
Does anyone manage to get the tabs function.
我正在使用 Android 2.2 Api 并使用 Eclipse IDE 进行开发
I am using Android 2.2 Api and develop with an eclipse IDE
推荐答案
已知错误 http://code.google.com/p/android/issues/detail?id=13092
一位用户建议将构建目标切换到 1.6,问题就消失了.显然是临时修复.
A user suggested to switch build target to 1.6 and the issue goes away. Obviously a temporary fix.
这篇关于任何人都知道这个错误对android标签意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!