【问题标题】:No resource identifier found for attribute 'entryImages'找不到属性“entryImages”的资源标识符
【发布时间】: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


【解决方案1】:

如果您在 ADT 中工作,我建议您首先撤消对包的重命名(我假设您手动重命名了它)并让一切恢复正常。

重命名您的应用程序包: 从 ADT 中的包资源管理器中,右键单击您的项目。选择 Android 工具->重命名应用程序包。

查看更改并选择完成。希望这些更改可以向您展示您在尝试手动重命名时遗漏了什么

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-03
    • 2015-12-26
    • 2017-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-25
    相关资源
    最近更新 更多