question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Older android version can't load libraries properly

See original GitHub issue

I have compile the KivyLauncher to APK with p4a : clean_dists&& p4a clean_builds&& p4a apk --requirements=sqlite3,hostpython2,plyer,kivy --package=org.test.launcher --name="Launcher" --version=0.0.1 --android_api 17 --bootstrap=pygame --launcher --permission WRITE_EXTERNAL_STORAGE --permission READ_EXTERNAL_STORAGE --permission ACCESS_CHECKIN_PROPERTIES --permission CAMERA --permission EXPAND_STATUS_BAR

All compiled perfect. But when I run programm in Launcher the Error occures. I do not know what to do . Please, tell me where may be the bug ?

ERROR: 11-13 00:50:16.050: I/ActivityManager(465): START u0 {act=org.renpy.LAUNCH dat=kivy:/storage/emulated/0/kivy/trade_sql cmp=org.test.launcher/org.renpy.android.PythonActivity} from pid 6181 11-13 00:50:16.169: I/ActivityManager(465): Start proc org.test.launcher:python for activity org.test.launcher/org.renpy.android.PythonActivity: pid=6208 uid=10114 gids={50114, 1015, 1028, 1006} 11-13 00:50:16.255: V/ActivityManager(465): Binding process pid 6208 to record ProcessRecord{42b3e7b8 6208:org.test.launcher:python/u0a10114} 11-13 00:50:16.257: V/ActivityManager(465): New app record ProcessRecord{42b3e7b8 6208:org.test.launcher:python/u0a10114} thread=android.os.BinderProxy@42738e90 pid=6208 11-13 00:50:16.417: V/ActivityManager(465): ACT-Launching: ActivityRecord{427c27c8 u0 org.test.launcher/org.renpy.android.PythonActivity} 11-13 00:50:16.773: D/dalvikvm(6208): Trying to load lib /data/app-lib/org.test.launcher-1/libpython2.7.so 0x421912c8 11-13 00:50:16.774: E/dalvikvm(6208): dlopen("/data/app-lib/org.test.launcher-1/libpython2.7.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libsqlite3.so" needed by "libpython2.7.so"; caused by load_library(linker.cpp:745): library "libsqlite3.so" not found 11-13 00:50:16.786: V/WindowManager(465): Changing focus from null to Window{42c3c708 u0 org.test.launcher/org.renpy.android.PythonActivity} 11-13 00:50:16.791: E/AndroidRuntime(6208): java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libsqlite3.so" needed by "libpython2.7.so"; caused by load_library(linker.cpp:745): library "libsqlite3.so" not found 11-13 00:50:16.791: E/AndroidRuntime(6208): at org.renpy.android.PythonActivity.run(PythonActivity.java:254) 11-13 00:50:17.069: I/WindowManager(465): Gaining focus: Window{42c3c708 u0 org.test.launcher/org.renpy.android.PythonActivity} 11-13 00:50:17.207: W/ActivityManager(465): Force finishing activity org.test.launcher/org.renpy.android.PythonActivity 11-13 00:50:17.210: V/WindowManager(465): Changing focus from Window{42c3c708 u0 org.test.launcher/org.renpy.android.PythonActivity} to null 11-13 00:50:17.218: I/WindowManager(465): Losing focus: Window{42c3c708 u0 org.test.launcher/org.renpy.android.PythonActivity} 11-13 00:50:17.549: V/ActivityManager(465): Enqueueing pending finish: ActivityRecord{427c27c8 u0 org.test.launcher/org.renpy.android.PythonActivity} 11-13 00:50:17.623: D/AES(465): process : org.test.launcher:python 11-13 00:50:17.628: D/AEE/LIBAEE(465): shell: raise_exp(2, 6208, -1361051648, org.test.launcher:python, 0x0x59762008, 0x0x0) 11-13 00:50:18.211: W/InputDispatcher(465): channel '42c3c708 org.test.launcher/org.renpy.android.PythonActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9 11-13 00:50:18.211: E/InputDispatcher(465): channel '42c3c708 org.test.launcher/org.renpy.android.PythonActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 11-13 00:50:18.211: I/ActivityManager(465): Process org.test.launcher:python (pid 6208) has died. 11-13 00:50:18.217: I/WindowState(465): WIN DEATH: Window{42c3c708 u0 org.test.launcher/org.renpy.android.PythonActivity} 11-13 00:50:18.217: W/InputDispatcher(465): Attempted to unregister already unregistered input channel '42c3c708 org.test.launcher/org.renpy.android.PythonActivity (server)' 11-13 00:50:18.217: W/WindowManager(465): Force-removing child win Window{42c981e8 u0 SurfaceView} from container Window{42c3c708 u0 org.test.launcher/org.renpy.android.PythonActivity}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
nesergencommented, Dec 4, 2016

Oh my god !!! It works ! Not fully , but applet not crashs !!!

I have included the “sqlite3” to the 13th line of PythonUtil.java

0reactions
inclementcommented, Jan 30, 2019

Closing as probably fixed by various corrections to library loading within the last couple of years.

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.loadLibrary(...) couldn't find native library in my case
In my new Android project I created a folder libs/armeabi/ and put libcalculate.so there. There is no jni/ folder. My testing device has...
Read more >
Cannot load native libraries in Android 6.0 which report "libfoo ...
Used to work in older Android versions with some warnings. Now some libraries, like ffmpeg built for x86 cannot be loaded in Android...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to Tools > SDK Manager. In the...
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
Common problems and solutions | Android NDK
Solution: Set your NDK API level ( APP_PLATFORM ) to the minimum version of Android your app supports. Build System, Setting. ndk-build, APP_PLATFORM....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found