我正在尝试将Revmob添加到我现有的Android应用中,但收到以下错误:
缓存全屏因未知原因而失败
缓存横幅由于未知原因而失败
一切都很好看。错误报告还包含:
W/ResourceType: No package identifier when getting value for resource number 0x00000000
W/System.err: android.content.res.Resources$NotFoundException: String resource ID #0x0
W/System.err: at android.content.res.Resources.getText(Resources.java:312)
W/System.err: at rm.com.android.sdk.a.b.a.a.d(Unknown Source)
W/System.err: at rm.com.android.sdk.a.b.a.a.b(Unknown Source)
W/System.err: at rm.com.android.sdk.a.b.a.a.<init>(Unknown Source)
W/System.err: at rm.com.android.sdk.a.b.a.a.a(Unknown Source)
W/System.err: at rm.com.android.sdk.a.b.a.a(Unknown Source)
W/System.err: at rm.com.android.sdk.a.b.a.b(Unknown Source)
W/System.err: at rm.com.android.sdk.a.b.a.a(Unknown Source)
W/System.err: at rm.com.android.sdk.a.a.c.d.a(Unknown Source)
W/System.err: at rm.com.android.sdk.a.a.c.a.a(Unknown Source)
W/System.err: at rm.com.android.sdk.b.o.run(Unknown Source)
W/System.err: at java.lang.Thread.run(Thread.java:818)
E/[rm]: Caching Fullscreen failed for unkown reason
答案 0 :(得分:0)
经过几个小时寻找错误的东西后,我想我会仔细查看以下错误行:
W/System.err: at android.content.res.Resources.getText(Resources.java:312)
W/System.err: at rm.com.android.sdk.a.b.a.a.d(Unknown Source)
转到revmob.jar文件,可以转到rm.com.android.sdk.a.b.a包。它有一个“a”类,带有“d”方法:
private void d() {
Resources var1 = this.b.getResources();
CharSequence var2 = var1.getText(var1.getIdentifier("app_name", "string", this.c));
this.e = var2.toString();
}
完成!错误是因为我的应用程序中没有“app_name”字符串。
由于此字符串不是强制性的,我认为是一个RevMob错误,但只是创建了一个,现在一切正常。