android.content.res.Resources$NotFoundException: String resource ID #0x0
at android.content.res.Resources.getText(Resources.java:352)
at android.content.res.Resources.getString(Resources.java:398)
at io.rong.push.notification.RongNotificationInterface.createNotification(RongNotificationInterface.java:207)
at io.rong.push.notification.RongNotificationInterface.sendNotification(RongNotificationInterface.java:102)
at io.rong.push.core.MessageHandleService.onHandleIntent(MessageHandleService.java:63)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)安卓app每次结束进程搁置一段时间启动就闪退,闪退后再次点击可以正常启动。以上是百度统计到的错误日志。网上搜索问题说是setText或者toast传了int资源找不到,我把代码有用到setText和toast的地方都审查了一遍没问题。主要是启动闪退,具体也没定位到哪一行代码,很头痛。有没有哪位大神遇到这个问题的,望指教,谢谢。

解决方案 »

  1.   

    at io.rong.push.notification.RongNotificationInterface.createNotification(RongNotificationInterface.java:207)
    这不是有错误的代码行吗,看样子是融云的创建通知,找不到string resource id,看看融云的库中的string.xml是否全部复制到app中了
      

  2.   

    xml中尽量不要复制@+id/,如果报错Resources$NotFoundException,那就直接删除id,再次重新设置,clear、rebuild就行了,开发工具都是傻瓜式的……