diff --git a/android/README.md b/android/README.md index b8aab06c917..159eeb238af 100644 --- a/android/README.md +++ b/android/README.md @@ -49,6 +49,7 @@ For this you can use `./scripts/build_pytorch_android.sh` script. ``` git clone https://github.com/pytorch/pytorch.git cd pytorch +git submodule update --init --recursive sh ./scripts/build_pytorch_android.sh ``` @@ -59,7 +60,7 @@ The workflow contains several steps: 2\. Create symbolic links to the results of those builds: `android/pytorch_android/src/main/jniLibs/${abi}` to the directory with output libraries `android/pytorch_android/src/main/cpp/libtorch_include/${abi}` to the directory with headers. These directories are used to build `libpytorch.so` library that will be loaded on android device. - + 3\. And finally run `gradle` in `android/pytorch_android` directory with task `assembleRelease` Script requires that Android SDK, Android NDK and gradle are installed.