Skip to content
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

Crash on android API 23 and below #1204

Closed
05nelsonm opened this issue Oct 23, 2024 · 4 comments
Closed

Crash on android API 23 and below #1204

05nelsonm opened this issue Oct 23, 2024 · 4 comments
Labels
question Further information is requested released Issue has been released

Comments

@05nelsonm
Copy link

05nelsonm commented Oct 23, 2024

Describe the bug
Crashes on Android API 23 and below as a result of logging behavioral changes in b8ea5ca

java.util.logger.Logger is not available on Android until API 24
java.util.function.Supplier usage is not available until API 24 (when android integrated Java 8 APIs)
The @FunctionalInterface annotation is also not an available API until Java 8, so usage of that would be out as well.

To Reproduce
Run in emulator API 23. Witness crash.

Expected behavior
Should not crash

Logs

Caused by: java.lang.NoClassDefFoundError: org.sqlite.core.NativeDB$$ExternalSyntheticLambda1
at org.sqlite.core.NativeDB.prepare(NativeDB.java:130)

https://github.com/toxicity-io/sqlite-mc/actions/runs/11482174680/job/31954575727?pr=127

@gotson
Copy link
Collaborator

gotson commented Oct 24, 2024

Android 6 is very old, and this is mostly a Java library, not an Android library. We are not going to do any stretch to support API 23.0

@05nelsonm
Copy link
Author

Then why offer support by detection of Android and loading via System.loadLibrary, or even the Linux-Android compilations that uses clang api 23 , or the guide for using with Android?

API 23 is widely used as the min SDK throughout Android ecosystem. Tons of old phones (particularly in poorer parts of the world) still used...

@gotson
Copy link
Collaborator

gotson commented Oct 24, 2024

You are confusing things. This library does not target any specific Android API. It is primarily a Java 8 API. If it doesn't work on certain Android APIs, we will not make a stretch to support those. API 23 is from 2015. API 24 is from 2016, and has almost the same cumulative usage as API 23.

@gotson gotson added question Further information is requested and removed triage labels Oct 24, 2024
@gotson gotson closed this as completed in 4a41998 Oct 24, 2024
@github-actions github-actions bot added the released Issue has been released label Nov 26, 2024
Copy link
Contributor

🎉 This issue has been resolved in 3.47.1.0 (Release Notes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested released Issue has been released
Projects
None yet
Development

No branches or pull requests

2 participants