首页 > 其他 > 详细

Unexpected namespace prefix "custom" found for tag

时间:2014-12-22 00:57:51      阅读:308      评论:0      收藏:0      [点我收藏+]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:custom="http://schemas.android.com/apk/res-auto"
              xmlns:tools="http://schemas.android.com/tools"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent">
    <fragment
        class="com.demo.artshell.fragmentdemo.ExampleFragment"
        android:id="@+id/example_fragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        custom:label="@string/example_fragment_arguments"
        tools:ignore="MissingPrefix"/>
</LinearLayout>

 添加:

xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingPrefix"

解决这个警告信息!

以上是在AS工具中出现的问题:

另外一篇文章是在eclipse上使用出现的问题:解决方法

Unexpected namespace prefix "custom" found for tag

原文:http://my.oschina.net/artshell/blog/359045

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!