Closed HenAsayag closed 2 months ago
Can you please add some logs to the report? (taken via adb
)
# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements python3,pygame,jnius,sdl2,sdl2_image,sdl2_mixer,sdl2_ttf,png,jpeg
Is wrong on a few levels. It should be requirements =
and the rest of the line should just look like this: python3,kivy,pygame
.
png,jpeg
part can be found near the top of the spec file (source.include_exts = py,png,jpg,kv,atlas,wav,jpeg
).
To run the application directly on the phone you need to use the command "buildozer android debug deploy run" instead of "buldozer android debug"
P.S.
I noticed that in your buildozer.spec file, you have the orientation set to portrait. But in your code the dimensions are set for landscape. You might want to change the spec file to reflect that.
Also, you might want to add pygame.FULLSCREEN as an argument in pygame.set_mode
looks like this: screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT), pygame.FULLSCREEN)
I don't think either of those will fix the crashing problem, but it might help.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Versions
Description
I am trying to build an APK using Buildozer for my game, but the APK crashes immediately upon opening on my phone. Additionally, I am unable to connect my phone to run the application directly, although all images and sound files are correctly placed.
buildozer.spec Command:
Spec file:
Main.py