[英]error: No resource identifier found
我有这个xml文件:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ctc="http://schemas.android.com/apk/res/com.hulist.asm.person"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<com.hulist.asm.person.ImageMap
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/person"
ctc:map="person_map" />
</LinearLayout>
在第8行( <com.hulist.asm.person.ImageMap
)上有一个错误提示
错误:在包“ com.hulist.asm.person”中找不到属性“ map”的资源标识符
我已经尝试修复了几天,我错了什么?
可能您是指错误9656中已解决的相同情况。 看一看,如果相同,请检查您是否正在使用旧版本的sdk工具。
如果您当前的软件包名称为com.hulist.asm
,那么这就是ctc
名称空间声明应具有的名称,而不是
xmlns:ctc="http://schemas.android.com/apk/res/com.hulist.asm.person"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.