我想制作一个关于 IPC 通信的演示应用程序。(服务之间的通信)。我正在使用AIDL
它。
我发现大部分教程RemoteService
和客户端都在同一个包中。
我实际上是分开做的,在传递对象时我正在使用Parcelable
方法并面临错误......
它说就像RemoteService Signature
找不到您的课程。。
我还在下面显示了我的Logcat:如果您有任何解决方案,请指导我...或任何相互依赖的服务器客户端服务教程或文档..
日志猫:
06-20 14:47:53.973: W/dalvikvm(4465): VFY: unable to find class referenced in signature (Lcom/sam/zserver/IQRemoteService;)
06-20 14:47:54.003: I/dalvikvm(4465): Could not find method com.sam.zserver.IQRemoteService.getCounter, referenced from method com.quip.zclient.ZIPCClientActivity.invokeService
06-20 14:47:54.003: W/dalvikvm(4465): VFY: unable to resolve interface method 53: Lcom/sam/zserver/IQRemoteService;.getCounter ()I
06-20 14:47:54.023: D/dalvikvm(4465): VFY: replacing opcode 0x72 at 0x0011
06-20 14:47:54.023: D/dalvikvm(4465): VFY: dead code 0x0014-0054 in Lcom/quip/zclient/ZIPCClientActivity;.invokeService ()V
06-20 14:47:54.273: I/ActivityManager(61): Displayed com.quip.zclient/.ZIPCClientActivity: +588ms
06-20 14:47:59.363: D/dalvikvm(226): GC_EXPLICIT freed 10K, 55% free 2595K/5703K, external 716K/1038K, paused 53ms
06-20 14:48:05.073: D/dalvikvm(245): GC_EXPLICIT freed 6K, 54% free 2543K/5511K, external 716K/1038K, paused 36ms
06-20 14:48:10.122: D/dalvikvm(306): GC_EXPLICIT freed 4K, 54% free 2537K/5511K, external 716K/1038K, paused 71ms
06-20 14:48:15.113: D/dalvikvm(4129): GC_EXPLICIT freed 14K, 53% free 2579K/5379K, external 716K/1038K, paused 49ms
谢谢;