ERROR/AndroidRuntime(716): java.lang.SecurityException: Binder invocation to an incorrect interface

在使用AIDL远程服务时,经常会遇到ERROR/AndroidRuntime(716): java.lang.SecurityException: Binder invocation to an incorrect interface这个错误,解决方法:在使用上请注意,服务端与客户端都要有相同的接口(使用到的),这里的“相同”是指完全相同,包括包名,也就是说要在不同工程下建立相同的包名,这样一来,问题应该迎刃而解了!

服务端:

客户端:

url:http://blog.csdn.net/a1031359915/article/details/7785227

原文地址:https://www.cnblogs.com/hnrainll/p/2976322.html