system informations:
- Raspberry pi 3B
- bookworm 64bits OS
- made with Pygame
gives the error:
# Check that aidl can be executed
# Search for Aidl
# Run '/home/leon/.buildozer/android/platform/android-sdk/build-tools/35.0.0/aidl'
# Cwd None
Traceback (most recent call last):
File "/home/leon/.local/bin/buildozer", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/__init__.py", line 1024, in run_command
self.target.run_commands(args)
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/target.py", line 93, in run_commands
func(args)
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/target.py", line 103, in cmd_debug
self.buildozer.prepare_for_build()
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/__init__.py", line 172, in prepare_for_build
self.target.install_platform()
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/targets/android.py", line 616, in install_platform
self._install_android_packages()
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/targets/android.py", line 567, in _install_android_packages
self._check_aidl(installed_v_build_tools)
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/targets/android.py", line 592, in _check_aidl
_, _, returncode = self.buildozer.cmd(aidl_cmd,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/leon/.local/lib/python3.11/site-packages/buildozer/__init__.py", line 289, in cmd
process = Popen(command, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/leon/.buildozer/android/platform/android-sdk/build-tools/35.0.0/aidl'
I tried to build a simple application for my android but it fails with this error and I’m trying to figure it out why.
it’s just a simple application to test if I could build for android using raspberry pi 3B.
import pygame, random, os
PATH = os.path.abspath('.')+'/'
pygame.init()
screen = pygame.display.set_mode((400, 400))
pygame_head = pygame.image.load(PATH+'pygame-head-party.png').convert()
pygame_head.set_colorkey((255,255,255))
current_color = (255, 0, 0)
done = False
while not done:
for event in pygame.event.get():
if event.type == pygame.QUIT: done = True
elif event.type == pygame.MOUSEBUTTONDOWN:
current_color = random.sample(range(0, 256), 3)
screen.fill(current_color)
screen.blit(pygame_head, (0,0))
pygame.display.flip()
pygame.quit()
New contributor