-
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
Kivy crashes on Android: ImportError: dlopen failed. #1810
Comments
This doesn't seem like a kivy issue, but a py4a issue. |
Don't know what has happened here, unless you have set |
@inclement Yes, I've set that $P4A_kivy_DIR |
@nitanmarcel Aha, in that case I think you're hitting a bug where p4a does not recompile kivy because the setup.py process sees the .so files are already present, and doesn't know that they are for the wrong architecture. I think I'm working around that by deleting |
@inclement deleted the env variable also the .buildozer folder and the error is still there |
Can you do that again, re-run buildozer, and post the full build log? |
@inclement Here is the full console log https://transfer.sh/FqXFs/buildozer.log |
After a lot of fights with switching between different versions of p4a and kivy I managed to build using kivy==master . I still have no idea what caused that weird bug and why it's working right now. I will leave this issue open if you need it for future reference. |
where did you give |
Once I fixed this issue as mentioned above and rebuilt, the 64-bit app crashes upon launch. The logger doesn't specify the error and there's no Traceback, it just says that python-for-android ended. Is there possibly an issue with the imports or would it be with my phone (Huawei P20)? |
@TechnoLenzer Please paste the full adb logcat output at the kivy-users mailing list or kivy discord channel. |
I just encountered a similar error with android while moving from python2 to python3. Cleaning up after previous builds helps. |
@inclement The issue wasn't actually anything to do with the change to 64-bit, but it was that the app crashed when it asked for the ACCESS_FINE_LOCATION permission. I didn't really need it so I deleted it from the code. |
This fails on a Huawei phone. In my other phones works just fine. This applies for the laptop as well. What could be the issue ? 06-12 19:39:53.261 10723 10762 I python : File "/data/data/org.test.test_buddy.myapp/files/app/view/welcome.kv", line 46, in |
I also encountered same problem.
|
we are also facing this problem |
Versions
git clone
and using a custom path in buildozer.specsrequirements.source.kivy = ~/projects/kivy-apps/rextester/kivy
Description
I can't make the app run on my android phone. It works on my pc but on my phone this error comes up:
ImportError: dlopen failed: "/data/data/demo.org.rextesterdroid/files/app/_python_bundle/site-packages/kivy/_clock.so" is 64-bit instead of 32-bit
Logs
The text was updated successfully, but these errors were encountered: