I just clone the pytorch 1.6 again with --recursive option. When I compile with the following command, I still got the same error:

BUILD_CAFFE2_MOBILE=1 ./scripts/build_android.sh，

微信截图_202010252332272775×671 92.1 KB
I don’t know if this is a bug? Previously I have  built libtorch.a using pytorch version 1.4 sucessfully with cmd:

BUILD_PYTORCH_MOBILE=1 ./scripts/build_android.sh.

and I can inference using C++ code.
I also want to know the diffenrence between flags BUILD_PYTORCH_MOBILE (v1.4) and BUILD_CAFFE2_MOBILE(v1.6).
Thank you very much