0

私はこの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'のリソース識別子が見つかりません

私はこれを数日間修正しようとしていますが、何が間違っているのですか?

4

2 に答える 2

0

おそらく、バグ9656で対処されたのと同じシナリオを参照しています。それを見て、同じである場合は、古いバージョンのSDKツールを使用しているかどうかを確認してください。

于 2013-01-05T17:48:21.630 に答える
0

現在のパッケージ名がcom.hulist.asmである場合、ctc名前空間宣言ではなく、それが必要です。

xmlns:ctc="http://schemas.android.com/apk/res/com.hulist.asm.person"
于 2013-01-05T17:58:36.183 に答える