From bdf47f5e4f3aae50a938ca1f4a9a30eace25568e Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Wed, 31 Jan 2024 16:20:39 -0800 Subject: [PATCH] [pytorch] Upgrade android build to 0.26.0 (#2975) --- android/core/build.gradle | 4 ++++ android/gradle.properties | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/android/core/build.gradle b/android/core/build.gradle index 11b8c473c00..fc549d5afb2 100644 --- a/android/core/build.gradle +++ b/android/core/build.gradle @@ -109,3 +109,7 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' } + +configurations.configureEach { + exclude group: "org.apache.commons", module: "commons-compress" +} diff --git a/android/gradle.properties b/android/gradle.properties index 8ad177db1bf..bc78729d35c 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -17,5 +17,5 @@ org.gradle.jvmargs=-Xmx1536m android.useAndroidX=true # Automatically convert third-party libraries to use AndroidX android.enableJetifier=true -djl_version=0.25.0 -pytorch_version=1.13.1 +djl_version=0.26.0 +pytorch_version=2.1.1