1. 程式人生 > >AIDL回撥報錯: enforceInterface() expected 'com.unistron.ReadIDCardAIDL' but read 'com.xx.CallBackIdC

AIDL回撥報錯: enforceInterface() expected 'com.unistron.ReadIDCardAIDL' but read 'com.xx.CallBackIdC

 but read 'com.xxx..CallBackIdCard'
01-02 14:25:14.540 27923 27923 D AndroidRuntime: Shutting down VM
--------- beginning of crash
 FATAL EXCEPTION: main
 Process: com.xxx.:remote, PID: 27923
 java.lang.SecurityException: Binder invocation to an incorrect interface
 at android.os.Parcel.nativeEnforceInterface(Native Method)
 at android.os.Parcel.enforceInterface(Parcel.java:483)
 at com.unistrong..ReadIDCardAIDL$Stub.onTransact(ReadIDCardAIDL.java:47)
 at android.os.Binder.transact(Binder.java:499)
 at com.unistrong..CallBackIdCard$Stub$Proxy.setInfo(CallBackIdCard.java:80)
 at com.unistrong.XXX..callback(XXX.java:245)
 at com.XXX.XXX..updateInfo(XXX.java:225)
 at com.XXX.XXX..access$0(XXX.java:200)
 at com.XXX.XXX.$1.handleMessage(XXX.java:52)
 at android.os.Handler.dispatchMessage(Handler.java:102)
 at android.os.Looper.loop(Looper.java:154)
 at android.app.ActivityThread.main(ActivityThread.java:6121)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)