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

 

服务端:

 

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

 

客户端:

 

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

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

相关文章:

  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-01-26
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-02-20
  • 2022-01-19
  • 2021-07-06
相关资源
相似解决方案