解决方案 »

  1.   

    在Service 调用都不报错  但是在Service 推送服务里面 注册EventBus 就报错   为什么呢?
      

  2.   

    你看EventBus注册的时候是不是在主进程里面,EventBus底层是handler,只能在主进程工作,否则就会报错,注意是进程,不是线程,线程可以正常工作,看看有没有用到aidl之类的..
      

  3.   

    没有直接在服务的onCreate 启动的  但是 服务的配置文件中
     <service 
    android:name="com.ityong.client.NotificationService"
    android:label="NotificationService">
    <intent-filter>
    <action android:name="com.ityong.client.NotificationService" />
    </intent-filter>
    </service>
    删除了 <intent-filter> 就好了  这个是为什么啊?  这个过滤是什么作用? 删了这个服务感觉就废了