Android的IPC远程服务呼叫显示错误 [英] Android IPC Remote service call display Error
问题描述
我想使关于IPC通信。(服务之间的通信)一个演示程序。
我使用 AIDL
为
I want to make one demo application regarding the IPC communication .(Communication between Service).
I am using AIDL
for that .
我发现大多数教程的 RemoteService
和客户端都在同一个包。
I found most of tutorial the RemoteService
and Client are in same package .
我真的去做分开,虽然传递对象,我使用 Parcelable
方法,面对错误...
I actually do it separately ,While passing the object I am using Parcelable
Method and facing Error ...
它说喜欢的 RemoteService签名
找不到类..
我显示我的logcat下面还:
如果您有任何解决方案,请指导我...或任何相互依赖的服务器的客户端服务的教程或文档。
It said like The RemoteService Signature
unable to find your class..
I displayed my Logcat Below also :
If you have any solution please guide me ...or any interdependent server client service tutorials or documents..
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
感谢;
推荐答案
我不知道到底,但似乎你没有把AIDL在客户端应用程序。你应该把AIDL在服务和客户端应用程序。
I do not know exactly but it seems that you did not put aidl in your client application. You should put aidl in Service and in the Client application.
这篇关于Android的IPC远程服务呼叫显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!