[Android RPC] expected ModuleHandle but get int

I am trying to run benchmark apps under tvm/apps/benchmark, however, I got following errors.

➜  benchmark git:(master) python arm_cpu_imagenet_bench.py --rpc-key android --port 9090
--------------------------------------------------
Network Name         Mean Inference Time (std dev)
--------------------------------------------------
Traceback (most recent call last):
  File "arm_cpu_imagenet_bench.py", line 106, in <module>
    evaluate_network(network, target, target_host, args.repeat)
  File "arm_cpu_imagenet_bench.py", line 61, in evaluate_network
    rlib = remote.load_module(filename)
  File "/home/ligeng/Workspace/tvm/python/tvm/rpc/client.py", line 148, in load_module
    return base._LoadRemoteModule(self._sess, path)
  File "/home/ligeng/Workspace/tvm/python/tvm/_ffi/_ctypes/function.py", line 209, in __call__
    raise get_last_ffi_error()
tvm._ffi.base.TVMError: TVMError: Except caught from RPC call: [06:53:34] /Users/ligeng/Workspace/tvm/apps/android_rpc/app/src/main/jni/../../../../../../include/tvm/runtime/packed_func.h:702: Check failed: type_code_ == kModuleHandle (0 vs. 9) :  expected ModuleHandle but get int

Both the apk and sample benchmark code are pulled from the latest commit. Can anyone help on this?

All this says is that loading of the module on the device has failed. Check logcat messages, there should be more details there.

have you solved the problem? what wrong, and how to solve?

Thanks for your reply.

Hi Huifeng, after upgrading the Android RPC to latest version, the issue no longer appears in my environment.

LyKen17 Hello Lyken17 How do you upgrade RPC to latest version?? I tried to upgrade RPC, but i do not solve this