Open wg138940 opened 5 months ago
Thanks for the bug report.
Someone else actually had reported this issue with Android 9 before.
I don't know the reason behind the error though. The SlintAndroidJavaHelper
class clearly exist. Maybe we're calling into API that did not exist in Android 9, but I don't know which ones.
The error message also mentions a failure to find the class java.lang.Object, which is a fundamental class in Java and should always be available.
The InMemoryDexClassLoader which we used was added in API level 26, which is Android 8.0. And I've tried to be carefull not to use anything that use a higher API level. I'd like to be able to support Android 8 and 9 since they still amount for about 11% of users according to https://apilevels.com/
Any help to tackle this issue would be welcome.
Platform: Android Language: Rust
Reproduce steps:
Project source code: slint-android-test.zip
build project with xbuild (or cargo-apk):
install and launch APP on Android 9 (with BlueStacks 5 Emulator), will produce error:
same APK works on Andorid 12 (with another emulator and real Android device):