![](/img/trans.png)
[英]android.content.res.Resources$NotFoundException: Resource ID #0x7f070016 type #0x3 is not valid
[英]android.content.res.Resources$NotFoundException: Resource ID #0x7f0a003b type #0x5 is not valid
我正在尝试使用适用于Android的Linphone库。 我已经按照指定的方式安装了所有库,并且在尝试运行项目时遇到以下错误。
Process: org.linphone, PID: 13440
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.linphone/org.linphone.LinphoneLauncherActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f0a003b type #0x5 is not valid
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f0a003b type #0x5 is not valid
at android.content.res.Resources.getBoolean(Resources.java:999)
at org.linphone.LinphoneLauncherActivity.onCreate(LinphoneLauncherActivity.java:50)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
请告诉我如何解决此问题,因为我的工作因此而陷入困境。 提前致谢 !!。
关于这个问题:
Android Resources $ NotFoundException:资源ID#0x7f030027
您可以检查R文件中的Resources $ NotFoundException:资源ID#0x7f030027。 它会告诉您哪个资源造成了问题。 作为一种替代解决方案,我认为您可能只有setText或任何内容为int。并且您知道在这里编译器会寻找相应的资源值。 因此,只需将一个空字符串连接为“”即可
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.