InterfaceLoader
InterfaceLoader copied to clipboard
下载demo测试时,不能传递自定义类,接收失败。提示找不到类,修改建议
新建了一个自定义类型,实现了Parcelable接口
public interface ILoaderDemo {
int plus(int a, int b);
int minus(user user);
int multi(int a, int b);
} 接口修改成自定义类型后LoaderDemoService就会报找不到 user classnotfound异常。
本人测试把InterfaceService里的获取参数方法里ClassLoader获取换成传递进来implement后运行就正常了。