-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Andorid 9: panicked with 'java.lang.ClassNotFoundException' #4936
Comments
Thanks for the bug report. |
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. Any help to tackle this issue would be welcome. |
What's the lowest supported Android version at this moment? Platform: Android 8.0
|
The way it works is that it tries to load the SlintAndroidJavaHelper class here
That class should exist because it is jenerated by the build script from a .java file I don't know what the problem is. Maybe the build script generated some bytecode that is not compatible with android 8? Maybe the java file contains things that prevent it to be loaded on android 8? Maybe InMemoryDexClassLoader doesn't work correctly on android 8? Any help to debug why exactly it is failing would be welcome
I think people have used it fine on Android 10. |
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):
The text was updated successfully, but these errors were encountered: