最近在写service的时候发现一个问题,service作为内部类时出现错误:
Unable to instantiate service...Service has no zero argument constructor
解决方案
把内部类改成静态内部类:
最近在写service的时候发现一个问题,service作为内部类时出现错误:
Unable to instantiate service...Service has no zero argument constructor
解决方案
把内部类改成静态内部类: