16KB Page Size Compatibility - libdigitalink.so not aligned for Android 15+
Describe your issue. If applicable, add screenshots to help explain your problem.
Google Play Console is reporting that apps using google_mlkit_digital_ink_recognition package are not compatible with the new 16KB memory page size requirement for Android 15+ devices.
Libraries that do not support 16 KB:
base/lib/arm64-v8a/libdigitalink.so base/lib/x86_64/libdigitalink.so
Steps to reproduce.
upload flutter app to google play store with google_mlkit_digital_ink_recognition package installed
What is the expected result?
Update all packages to support 16 kb, and android target version to 36
Did you try our example app?
Yes
Is it reproducible in the example app?
No response
Reproducible in which OS?
Android
Flutter/Dart Version?
No response
Plugin Version?
0.14.1
The development branch has already fixed this feature.
@minhto2811 great, thanks. I'll check it.
@minhto2811
Keep getting errors from the package itself.
Please see below full log
`Note: /Users/yaron/.pub-cache/hosted/pub.dev/google_mlkit_commons-0.11.0/android/src/main/java/com/google_mlkit_commons/InputImageConverter.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. /Users/yaron/.pub-cache/git/google_ml_kit_flutter-f3397499e96eb9901f7d259a13fb1521b03d992f/packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/DigitalInkRecognizer.java:60: error: cannot find symbol new GenericModelManager.CheckModelIsDownloadedCallback() { ^ symbol: class CheckModelIsDownloadedCallback location: class GenericModelManager /Users/yaron/.pub-cache/git/google_ml_kit_flutter-f3397499e96eb9901f7d259a13fb1521b03d992f/packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/DigitalInkRecognizer.java:61: error: method does not override or implement a method from a supertype @Override ^ /Users/yaron/.pub-cache/git/google_ml_kit_flutter-f3397499e96eb9901f7d259a13fb1521b03d992f/packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/DigitalInkRecognizer.java:71: error: method does not override or implement a method from a supertype @Override ^ Note: /Users/yaron/.pub-cache/git/google_ml_kit_flutter-f3397499e96eb9901f7d259a13fb1521b03d992f/packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/DigitalInkRecognizer.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':google_mlkit_digital_ink_recognition:compileDebugJavaWithJavac'.
Compilation failed; see the compiler output below. Note: Recompile with -Xlint:unchecked for details./Users/yaron/.pub-cache/git/google_ml_kit_flutter-f3397499e96eb9901f7d259a13fb1521b03d992f/packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/DigitalInkRecognizer.java:61: error: method does not override or implement a method from a supertype @Override ^ /Users/yaron/.pub-cache/git/google_ml_kit_flutter-f3397499e96eb9901f7d259a13fb1521b03d992f/packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/DigitalInkRecognizer.java:71: error: method does not override or implement a method from a supertype @Override ^/Users/yaron/.pub-cache/git/google_ml_kit_flutter-f3397499e96eb9901f7d259a13fb1521b03d992f/packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/DigitalInkRecognizer.java:60: error: cannot find symbol new GenericModelManager.CheckModelIsDownloadedCallback() { ^ symbol: class CheckModelIsDownloadedCallback location: class GenericModelManagerNote: /Users/yaron/.pub-cache/git/google_ml_kit_flutter-f3397499e96eb9901f7d259a13fb1521b03d992f/packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/DigitalInkRecognizer.java uses unchecked or unsafe operations. 3 errors
- Try:
Check your code and dependencies to fix the compilation error(s) Run with --scan to get full insights.
BUILD FAILED in 26m 33s Error: Gradle task assembleDevelopmentDebug failed with exit code 1`
I have no issues with the production versions.
@minhto2811 I have tested my app with the development branch code still for libface_detector_v2_jni.so i am facing unaligned issue. I am attaching the screenshot for your kind reference. Please have a look & let me know if any input needed from my side.
@Yaronkr This issue is because of google_mlkit_digital_ink_recognition dependency on google_mlkit_commons.So you must update google_mlkit_commons as well.But if you dependency on google_mlkit_commons with git,It will has another error. So you must fork google_mlkit_digital_ink_recognition and change dependency of google_mlkit_commons to git. And add your fork git to your project. I have tried this way successed. You can see my fork https://github.com/sunchangsong/google_ml_kit_flutter.You can do like this.
@sunchangsong thank you for your help. I'll do the same and check if working.