Hi, I am super excited to see 1.9 release so I give a try, however I can’t get the hello world working.
if I simple change dependencies from
    implementation 'org.pytorch:pytorch_android:1.8.0-SNAPSHOT'
    implementation 'org.pytorch:pytorch_android_torchvision:1.8.0-SNAPSHOT'

to
    implementation 'org.pytorch:pytorch_android:1.9.0'
    implementation 'org.pytorch:pytorch_android_torchvision:1.9.0'

I would get lost of similar compile error of duplicate class. like those
  java.lang.RuntimeException: Duplicate class org.pytorch.BuildConfig found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.DType found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.Device found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.INativePeer found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.IValue found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.MemoryFormat found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.Module found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.NativePeer found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.PyTorchAndroid found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.PyTorchCodegenLoader found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.Tensor found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.Tensor$1 found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.Tensor$Tensor_float32 found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.Tensor$Tensor_float64 found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.Tensor$Tensor_int32 found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)
  Duplicate class org.pytorch.Tensor$Tensor_int64 found in modules classes.jar (org.pytorch:pytorch_android:1.9.0) and classes.jar (org.pytorch:pytorch_android_lite:1.9.0)


If I use
    implementation 'org.pytorch:pytorch_android_lite:1.9.0'
    implementation 'org.pytorch:pytorch_android_torchvision:1.9.0'

The code will build but at run time, it crash with  couldn’t find "libpytorch_jni.so"
I inspected the APK and there is no libpytorch_jni.so in lib folder. there are only
libc++_shared.so         libfbjni.so              libpytorch_jni_lite.so   libpytorch_vision_jni.so
It seems like the dependencies or packaging is not setup straight forward, I wonder what is a working configuration. Thanks