Older android version can't load libraries properly
See original GitHub issueI 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:
- Created 7 years ago
- Comments:25 (11 by maintainers)
Top GitHub Comments
Oh my god !!! It works ! Not fully , but applet not crashs !!!
I have included the “sqlite3” to the 13th line of PythonUtil.java
Closing as probably fixed by various corrections to library loading within the last couple of years.