tauri-apps / tauri-apps/plugins-workspace

Sql plugin fails on android

Open
#2,668 1 comment 0 reactions 0 assignees View on GitHub
platform: android plugin: sql
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

Hi,
I've been playing with the default app (made with bun create tauri-app). When I export the apk, it opens normally at the Android Studio emulator. If I install the tauri-plugin-sql, the app start crashing on the emulator.

Inspecting the Android Studio logcat I found that:

`FATAL EXCEPTION: main
Process: com.teste_tauri_svelte.app, PID: 5509
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__floatunditf" referenced by "/data/app/~~7vQvFD2H5YX7BmVa_HJg5A==/com.teste_tauri_svelte.app-7v5MgmNVeejcR2ajDYt_pQ==/base.apk!/lib/x86_64/libteste_tauri_svelte_lib.so"...
at java.lang.Runtime.loadLibrary0(Runtime.java:1090)
at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
at java.lang.System.loadLibrary(System.java:1765)
at com.teste_tauri_svelte.app.WryActivity.(Unknown Source:2)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at android.app.Instrumentation.newActivity(Instrumentation.java:1443)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4173)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4467)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2823)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:248)
at android.os.Looper.loop(Looper.java:338)
at android.app.ActivityThread.main(ActivityThread.java:9067)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.