Resource not found exception when trying to start an external service

Deadly 提交于 2019-12-12 20:29:09

问题


I am using the Linphone library to create some VOIP app. The library is an external jar in the private libraries section in Eclipse.

I'm trying to use the ChatStorage class to handle chat messages which is a part of the library.

When trying to start the service I get the exception:

java.lang.RuntimeException: Unable to create service org.linphone.LinphoneService: android.content.res.Resources$NotFoundException: Resource ID #0x7f0a003b

The problem is that like I said, I'm working with an external jar. From logcat I could see that the problem was caused because of line 137 in the service onCreate method and only online I could find the source code of the service in this link:

https://github.com/BelledonneCommunications/linphone-android/blob/master/src/org/linphone/LinphoneService.java

There I could see that line 137 is:

LinphoneCoreFactory.instance().enableLogCollection(!(getResources().getBoolean(R.bool.disable_every_log)));

What can I do when we're talking about an external jar? Can I somehow edit its content and add this bool resource if its not there?

来源:https://stackoverflow.com/questions/30693917/resource-not-found-exception-when-trying-to-start-an-external-service

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!