-
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
Issue with not finding JNI and nativeSetEnv in SDLActivity #1344
Comments
Here's my spec file
|
Rebuilt my entire project from scratch. Updated p4a to master along with buildozer. Same issue. |
I think the root of the problem lies in https://github.com/kivy/python-for-android/blob/0.6.0/pythonforandroid/bootstraps/service_only/build/src/org/kivy/android/PythonUtil.java. I think the issue is that the libraries aren't being loaded properly with System.load. I'll do some further investigating after work. |
Using
I am able to get a build to run on my Samsung Galaxy S5 running Android API 23 but it fails on my LG V20 Android API 24 with the previous error log. Does anyone have any idea why it works from one phone but not for another? They are only one API apart and the phone that works is even the lower version one. |
I think the issue might be due to different android versions. Im looking into it right now. https://developer.android.com/about/versions/nougat/android-7.0-changes. In the NDK Apps Linking to Platform Libraries |
The root cause of the issue was that my LG V20 can't locate armv7 libraries. Then there was an issue with PythonUtil.java not loading my libraries for arm64 on top of that too. I commented out the code and brute force loaded the libraries rather than load them in the for-loop
After doing this my LG v20 can find the libraries and this issue goes away. I'm not quite sure why this function in PythonUtil.py is returning a null array...
This null array didn't load my libraries so I didn't use it. I'm still not quite sure why my LG V20 can't run armv7 code, I thought 32 bit archs would work on 64 bit archs. I'm working on trying to build an apk with both but buildozer isn't liking multiple archs.... |
I'm trying to build an app but it fails on launch with this error.
I've seen this issue pop up from time to time but nobody ever really gives a definitive answer on how to fix it. It looks like right now there is an issue with SDLActiviy_nativeSetEnv and the JNI not finding each other.
The text was updated successfully, but these errors were encountered: