【问题标题】:Android IPC Remote service call display ErrorAndroid IPC远程服务调用显示错误
【发布时间】:2012-06-20 09:31:27
【问题描述】:

我想制作一个关于 IPC 通信的演示应用程序。(服务之间的通信)。 我为此使用AIDL

我发现大部分教程RemoteService 和客户端都在同一个包中。

我实际上是分开做的,在传递对象时我正在使用ParcelableMethod 并面临错误......

上面写着 RemoteService Signature 找不到你的班级.. 我还在下面显示了我的 Logcat: 如果您有任何解决方案,请指导我...或任何相互依赖的服务器客户端服务教程或文档..

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

谢谢;

【问题讨论】:

    标签: android ipc aidl inter-process-communicat


    【解决方案1】:

    我不确切知道,但您似乎没有将aidl 放入您的客户端应用程序中。您应该将aidl 放在Service 和Client 应用程序中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-13
      • 1970-01-01
      • 1970-01-01
      • 2011-07-24
      • 2012-08-31
      相关资源
      最近更新 更多