[英]error: No resource identifier found
I have this xml file: 我有这个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>
and on line 8 ( <com.hulist.asm.person.ImageMap
) there is an error saying 在第8行(
<com.hulist.asm.person.ImageMap
)上有一个错误提示
error: No resource identifier found for attribute 'map' in package 'com.hulist.asm.person'
错误:在包“ com.hulist.asm.person”中找不到属性“ map”的资源标识符
I've been trying to fix this for a few days now, what am I dong wrong? 我已经尝试修复了几天,我错了什么?
如果您当前的软件包名称为com.hulist.asm
,那么这就是ctc
名称空间声明应具有的名称,而不是
xmlns:ctc="http://schemas.android.com/apk/res/com.hulist.asm.person"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.