Skip to content

下载demo测试时,不能传递自定义类,接收失败。提示找不到类,修改建议 #4

Description

@BloodBamboo

image
新建了一个自定义类型,实现了Parcelable接口

public interface ILoaderDemo {

int plus(int a, int b);

int minus(user user);

int multi(int a, int b);

}
接口修改成自定义类型后LoaderDemoService就会报找不到 user classnotfound异常。

image
本人测试把InterfaceService里的获取参数方法里ClassLoader获取换成传递进来implement后运行就正常了。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions