-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
"Couldn't load python3.5m: findLibrary returned null" on older versions of Android #866
Comments
I tried the same APK on my LG Volt (Android 4.4) and it works. |
I have this problem too. App works on android 4.2.2 (JIAYU G2F), but fails on android 4.2.1 (ISA A19) |
I added some extra logging to the /src/org/kivy/android/PythonUtil.java:
And got "cannot locate 'getsid'":
|
My suspicion is that older android versions did not implement getsid(). Maybe building python with -DHAVE_GETSID=0 cflag will wix it. I don't have much time to do this now unfortunately. |
Thanks for this interesting debugging information. I don't have versions of android to easily test it so it would be great if you're able to check that flag (although if necessary I guess it can be checked using emulators). |
I confirm this, on android 2.3.3 |
If this does not get fixed, I think buildozer should increase the minimum version of android required when it creates the APK |
@Fak3 |
I use a Samsumg GT-I9070 android 4.1.2 and today git for buildozer and python-for-android
and rin the command: In PythonUtil.java I have commented out the code about catch(UnsatisfiedLinkError e)
now I get this error:
What about 'wait4' ? |
…lier devices) closes kivy#866
When I try to run my APK on older versions of Android (<4.x) I'm getting a crash with this error: "Couldn't load python3.5m: findLibrary returned null"
I'm using the new python-for-android toolchain checked out a few days ago.
I get a popup on the device that says it's an "SDL Error"
logcat: http://pastebin.com/A0EJ8dQG
buildozer: http://pastebin.com/WCbU96TM (I did add python2 to the list of requirements but it did not help)
I also changed the Kivy recipe to use stable as opposed to master. I didn't think that was the problem.
Tested on a Kindle Fire HD (3.x fails), LG Volt (4.4 fails, but for a different reason much later in the startup process after kivy started).
Uninstalling and reinstalling the app did not help.
It looks python-for-android/pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android/PythonUtil.java in the function loadLibraries it is failing to find either python2.7 or python3.5m.
If this all sounds familiar it's a similar problem to #645. In fact before I updated p4a I was at revision 084ddec which @kived had just checked in to fix #645. I was able to build a working version of my app with that revision. After I pulled the latest revision (9d457e3) I immediately started seeing this problem.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: