I have this xml file:
<?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
error: No resource identifier found for attribute 'map' in package 'com.hulist.asm.person'
I've been trying to fix this for a few days now, what am I dong wrong?
Possibly you are referring to the same scenario which has been addressed in bug 9656 . Take a look at that and if it is the same, check whether you are using an older version of sdk tools.
如果您当前的软件包名称为com.hulist.asm
,那么这就是ctc
名称空间声明应具有的名称,而不是
xmlns:ctc="http://schemas.android.com/apk/res/com.hulist.asm.person"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.