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

Anroid java.lang.NoSuchMethodError: No interface method getSchema()Ljava/lang/String; in class Ljava/sql/Connection; or its super classes (declaration of 'java.sql.Connection' appears in /apex/com.android.art/javalib/core-oj.jar) #1014

Open
vladyslavv-ua opened this issue Jan 12, 2025 · 2 comments

Comments

@vladyslavv-ua
Copy link

Hi. My android build crashes when using kotlin dataframe. I get the error java.lang.NoSuchMethodError: No interface method getSchema()Ljava/lang/String; in class Ljava/sql/Connection; or its super classes (declaration of 'java.sql.Connection' appears in /apex/com.android.art/javalib/core-oj.jar)

How to reproduce

  1. Clone the repository https://github.com/vladyslavv-ua/TimeTracker
  2. Build into android.
  3. Launch the screen where dataframe is used image(this equalizer button)
  4. Get a crash
2025-01-12.15-49-57.mp4
@Jolanrensen
Copy link
Collaborator

Could you try to add implementation(libs.sqlite.jdbc) to androidMain as well? I'm not entirely sure how the JDBC classloader handles dependencies in Kotlin multiplatform projects, but adding it in the place it's used may make it easier for JDBC to call into SQLite.

@vladyslavv-ua
Copy link
Author

Yes. I tried it but the same error. To use JDBS I had to download jar package and extract JNI library from https://github.com/xerial/sqlite-jdbc this repo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants