[英]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.