簡體   English   中英

錯誤:找不到資源標識符

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM