如何清除此类错误“Java.Lang.Runtime无法启动您的服务Java.Lang.Nullpointerexception” [英] How Can I Clear This Type Of Error "Java.Lang.Runtime Unable To Start Your Service Java.Lang.Nullpointerexception"

查看:71
本文介绍了如何清除此类错误“Java.Lang.Runtime无法启动您的服务Java.Lang.Nullpointerexception”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

使用每5分钟运行一次的服务。当我重新启动移动设备意味着在20秒意外后显示弹出窗口时,(应用程序名称)已停止。 。当我通过USB连接手机以检查日志意味着它显示错误。

Hi friends,
Am using a service which runs on every 5 minutes.When I rebooted the mobile means an popup showing after 20 seconds unexpectedly,(App name) has been stopped..When i connected the mobile via USB to check the log means it is showing that error.

推荐答案

首先,如果您不知道如何调试,而且什么是调试,那么你不应该这样做。

现在关于你的问题,你的问题清楚地说明问题是空指针。即,您有一个指向null的对象,并且您正在修改以访问该对象的成员。当然,您的申请失败了。
First of all , if you dont know how to debug, moreover what is debug, then you should not be doing this.
Now about your problem, your problem clearly says that the problem is with null pointer. i.e. You have an object which is pointing to null and you are truing to access the members of that object. Naturally your application is failing.


这篇关于如何清除此类错误“Java.Lang.Runtime无法启动您的服务Java.Lang.Nullpointerexception”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆