diff --git a/android/build.gradle b/android/build.gradle index a5494672bce..59bf41cfb4d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -15,7 +15,7 @@ allprojects { androidSupportAppCompatV7Version = "28.0.0" fbjniJavaOnlyVersion = "0.0.3" soLoaderNativeLoaderVersion = "0.8.0" - pytorchAndroidVersion = "1.11.0-SNAPSHOT" + pytorchAndroidVersion = "1.10.0" } repositories { diff --git a/android/ops/CMakeLists.txt b/android/ops/CMakeLists.txt index 6f5323c0d39..3210925a85c 100644 --- a/android/ops/CMakeLists.txt +++ b/android/ops/CMakeLists.txt @@ -35,7 +35,7 @@ target_compile_options(${TARGET} PRIVATE set(BUILD_SUBDIR ${ANDROID_ABI}) -find_library(PYTORCH_LIBRARY pytorch_jni_lite +find_library(PYTORCH_LIBRARY pytorch_jni PATHS ${PYTORCH_LINK_DIRS} NO_CMAKE_FIND_ROOT_PATH)