@6876193 百度还有这样的答案,需要logcat查看错误信息。谢谢各位,找到问题了, 是在用INTENT启动service的时候 官方文档说 The Intent supplied to startService(Intent), as given. This may be null if the service is being restarted after its process has gone away, and it had previously returned anything except START_STICKY_COMPATIBILITY. 某个时候方法onStart()已经deprecated,在Android 2.0之后被onStartCommand所取代。onStartCommand为了backwards compatibility,默认实现是去call onStart方法,并且会在最后返回START_STICKY or START_STICKY_COMPATIBILIT 要加入对intent空指针的保护