【发布时间】:2014-04-22 14:49:05
【问题描述】:
我在 androidmanifest.xml 中更改了包名。但是在重新编译时出现此错误。
\res\xml\utils.xml 错误:
No resource identifier found for attribute 'entryImages' in package 'com.whatsapp.plus'
这是 utils.xml 中错误所在的行
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/plus_version"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:robobunny="http://robobunny.com"
xmlns:cmwmobile="http://schemas.android.com/apk/res/com.whatsapp">
<com.whatsapp.plus.ImageListPreference
android:entries="@array/bubble_style"
android:title="@string/bubble_style_title"
android:key="bubble_style_list"
android:summary="@string/bubble_style_summary"
android:defaultValue="0"
android:entryValues="@array/bubble_values"
cmwmobile:entryImages="@array/bubbles_images" />
<com.whatsapp.plus.ImageListPreference
android:entries="@array/appicons_style"
android:title="@string/appicons_title"
android:key="appicons_list"
android:defaultValue="0"
android:entryValues="@array/appicons_values"
cmwmobile:entryImages="@array/appicons_images" />
<com.whatsapp.plus.ImageListPreference
android:entries="@array/notifybar_colors"
android:title="@string/notifybar_colors_title"
android:key="notifybar_colors_list"
android:summary="@string/notifybar_colors_summary"
android:defaultValue="0"
android:entryValues="@array/notifybar_values"
cmwmobile:entryImages="@array/notifybar_icons" />
【问题讨论】:
-
您使用的是哪个 ide/build 系统?更改包名称后,您必须重新生成 R.java 文件。
标签: java javascript android xml