java.lang.IllegalArgumentException:无效的int:"今天"在android.os.Parcel.readException(Parcel.java:1550)

时间:2017-12-16 03:19:09

标签: java android parcelable aidl android-binder

当我使用AIDL时,它发生了。 这是例外:

 java.lang.IllegalArgumentException: Invalid int: "明天天气怎么样"
                               at android.os.Parcel.readException(Parcel.java:1550)
                                                                      at android.os.Parcel.readException(Parcel.java:1499)
                                                                      at com.uurobot.voicesrc.remote.IMsgCallBack$Stub$Proxy.interceptRobotAction(IMsgCallBack.java:82)

这是援助

@Override 
public boolean interceptRobotAction(java.lang.String result) throws android.os.RemoteException {
    android.os.Parcel _data = android.os.Parcel.obtain();
    android.os.Parcel _reply = android.os.Parcel.obtain();
    boolean _result;
    try {
        _data.writeInterfaceToken(DESCRIPTOR);
        _data.writeString(result);
        mRemote.transact(Stub.TRANSACTION_interceptRobotAction, _data, _reply, 
        0);
        _reply.readException();**//82 exception happen at this line**
        _result = (0!=_reply.readInt());
    }
    finally {
        _reply.recycle();
        _data.recycle();
    }
    return _result;
}

_reply.readException(); //此行发生异常<82>

0 个答案:

没有答案