android.content.res.Resources $ NotFoundException:资源ID#0x7f0a003b类型#0x5无效

时间:2017-11-13 09:31:06

标签: android linphone

我正在尝试使用适用于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) 

请让我知道如何解决这个问题,因为我的工作因此而停滞不前。 在此先感谢!!。

1 个答案:

答案 0 :(得分:0)

关于这个问题:
Android Resources$NotFoundException: Resource ID #0x7f030027

  

您可以检查R文件中的资源$ NotFoundException:资源ID#0x7f030027。它会告诉您哪个资源正在创建问题。作为替代解决方案,我认为你可能有setText或任何内容只是一个int.And你知道这里编译器将寻找相应的资源值。所以,只需将空字符串连接到""