`
yidongkaifa
  • 浏览: 4050851 次
文章分类
社区版块
存档分类
最新评论

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

 
阅读更多

转自:http://blog.csdn.net/a1031359915/article/details/7785227

郁闷,今天遇到一异常:

E/AndroidRuntime(744): java.lang.IllegalStateException: Could not execute method of the activity

详细后面的异常是:E/AndroidRuntime(744): Caused by: java.lang.SecurityException: Binder invocation to an incorrect interface

解决方法如下:

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

服务端:

客户端:

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics