-
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
[MACOS] Android app crashes on start when using macos to build #2519
Comments
This issue is probably more related to Can you please share a full log? Feel free to ask for help on our support chat. |
Thanks for the reply. I am more than happy to provide the full log. Which log do you want? |
I'm sorry, I missed to specify it, the one generated on the Android device, during runtime. |
Here you go. The log is so big that I can not put the log directly in this comment. The application started around line 90. |
Hi how did you manage to run this on mac os with apple silicon in rosetta ? when i try to run this i always get an error related with binascii , same error persist using both buildozer and p4a command. sometimes error is related on the posixmodule.o There's no problem in building apk using linux environment virtually but it is too slow running a linux x86_64 in mac os with apple silicon, |
Sorry for the late reply, which part did you encouter a problem? Do you mean you don't know how to build the app using rosetta environment? Are you currently using the x86_64 arch to build the app or using the arm arch? To my knowledge kivy does not support native arm64 on macos yet. |
@ChihayaK is that issue solved for you on the latest |
Sorry for the late reply, it seems that now I can not build the app using the latest develop branch because this error: |
Rosetta is not needed anymore on latest (You'll need to clean your |
I tried the ndk 25. It did not worked and stuck at Cwd ...../python-for-android |
That looks like a network error. |
I tried the |
Can you post the full log? |
|
Can you try to manually run: |
So it gives me this error: And looking though the logs I dont think it starts any virtualenv stuff. Maybe I should try to install |
Can you try to use the latest |
And do the Opps, not yet. That command runs, but it still stuck at cwd. |
Yes! This fixed the cwd issue! Trying to reproduce my original issue right now. |
And I run it to this problem:
And not sure if this is relevant to this problem:
|
Did you cleaned the |
Can confirm that I removed the |
It seems tome the original issue was resolved, and the OP is now encountering a different one. Closing as complete, but if the issue is still occuring, please let us know. |
Software Versions
Describe the bug
When trying to build the android app using macos. The app can be successfuly built. However the app it self will crash on start with the following log.
Logs before crahses
However, the same code can be built perfectly well on Ubuntu 20.04 LTS. With no problems.
I noticed this issue when upgrading to the big sur six months ago. The app builds perfectly fine on Catalina and works on Big Sur initially. One day, I decided to run "buildozer android clean" and this problem occurred. I was getting errors on zbarlight when I was building the app (but I eventually got rid of the build error error by doing some hacky patch, error log attached below), so I suspect this issue is somewhat related to the libzbar and zbarlight.
Zbarlight error
Expected behavior
The android app runs without crash.
To Reproduce
I had successfuly created a demo that can reproducce the behavior. I will attach the code in the code&log section.
Code and Logs and screenshots
File structure
main.py
Pipfile
buildozer.spec
The text was updated successfully, but these errors were encountered: