Prahlad
(Prahlad)
1
APK is not compatible with 16 KB devices.
Some libraries have LOAD segments not aligned at 16 KB boundaries:
base/lib/arm64-v8a/libpytorch_jni.so
base/lib/arm64-v8a/libpytorch_vision_jni.so
base/lib/x86_64/libfbjni.so
base/lib/x86_64/libpytorch_jni.so
base/lib/x86_64/libpytorch_vision_jni.so
Google requires 16 KB alignment starting Nov 1, 2025.
Requesting you to update Android build pipeline (CMake/NDK flags) to produce aligned .so files.
cbilgin
(Cagatay Bilgin)
2
Please use ExecuTorch. We are no longer investing in PyTorch Mobile. You’ll get much more support along with all sorts of perf, memory, sizewins.
Prahlad
(Prahlad)
3
But still, the latest version of ExecuTorch is not aligned at 16 KB page boundaries.
// https://mvnrepository.com/artifact/org.pytorch/executorch-android
implementation ‘org.pytorch:executorch-android:1.0.0-rc1’
When we can expect the newer version?
Can we use it in production app?