什么可能导致“请求资源xxx失败,因为它很复杂”

时间:2017-05-06 13:43:28

标签: java android android-resources r.java-file

在我在启动时的应用程序中出现此错误:

Requesting resource 0x7f05002b failed because it is complex

紧接着

E/GooglePlayServicesUtil(3087): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

在R.java中,我有0x7f05002b

public static final class string {
    public static final int common_google_play_services_unknown_issue=0x7f05002b;        
}

在res \ values \ values.xml中我有

<string name="common_google_play_services_unknown_issue"><xliff:g id="app_name">%1$s</xliff:g> is having trouble with Google Play services. Please try again.</string>

我在所有语言资源文件夹中都有相同的内容,例如/res/values-de/values.xml/res/values-fr/values.xml

那么什么会导致请求资源0x7f05002b失败,因为它很复杂?注意:我在Delphi下不在Android Studio下,我使用aapt.exe构建自己的r.java。

注意

如果我删除所有语言资源文件夹,例如/res/values-de/values.xml/res/values-fr/values.xml,那么我就不再有错误了!

0 个答案:

没有答案