Android build and vulkan_wrapper.h

I’m trying to build libtorch for Android, using the script, but am getting errors due to Vulkan:

  Cannot find source file:


And indeed, that file does not exist there.

Can someone point me to some up-to-date instructions on how to build the native library for Android?

For anyone coming across this with the same question, I had to specifically disable both Vulkan and XNNPACK support to build the native code for Android (-DUSE_VULKAN=OFF -DUSE_XNNPACK=OFF).

I would be interested in any tips on how to build without disabling those features, though, since I’m not sure what the consequences is of disabling them!

I built with version 21 of the NDK, and I no longer had to turn off those features.