【问题标题】:Rendering Problems Exception raised during rendering: No tab known for tag null in ANDROID渲染问题 渲染过程中引发异常:在 ANDROID 中没有已知标签为 null 的选项卡
【发布时间】:2015-10-16 10:47:54
【问题描述】:
                       <android.support.v4.app.FragmentTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"/>

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="0dp"
        android:layout_weight="1" />
</LinearLayout>

渲染时出现异常:No tab known for tag null.By this error cannot get Preview in Android studio.

【问题讨论】:

    标签: android android-layout android-tabs


    【解决方案1】:

    由于标签片段不可用而导致此错误。请将您的 API 版本(gradle 文件更改 api 版本)更改为您工作室中可用的版本。更改后单击预览部分中的重新加载按钮

    【讨论】:

      【解决方案2】:

      如果此错误显示 xml 视图 检查你的android版本api,如果这个是23,根据android sdk lib做22或21

      【讨论】:

        猜你喜欢
        • 2016-06-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-08-06
        • 2015-01-08
        • 2017-03-10
        • 1970-01-01
        相关资源
        最近更新 更多