Question:
Hi everyone,
I'm trying to build an Android app using Buildozer, but I'm getting an error when I run the command buildozer android debug. I'm trying to troubleshoot an issue with my Buildozer project, and I need to check the configuration tokens. The error message is:
Unknown command/target android
I've checked my buildozer.spec file, and it looks correct. I've also made sure that I have the Android SDK and NDK installed on my system.
Here's my buildozer.spec file:
VerifyOpen In EditorEditCopy code
1[app]
2
3# (str) Title of your application
4title = My App
5
6# (str) Package name
7package.name = my.app
8
9# (str) Version of your application
10version = 1.0
11
12# (list) Source files to include (let empty to include all the files)
13source.include_exts = py,png,jpg,kv,atlas
14
15# (list) List of directory to exclude (let empty to not exclude anything)
16source.exclude_dirs = tests, bin
17
18# (list) List of exclusions using pattern matching
19source.exclude_patterns = license,images/*/*.jpg
20
21# (str) Application versioning (method 1)
22version.regex = __version__ = ['"](.*)['"]
23version.filename = %(source.dir)s/main.py
24
25# (str) Icon of the application
26icon.filename = %(source.dir)s/data/icon.png
27
28# (str) Supported orientation (one of landscape, portrait or all)
29orientation = portrait
30
31# (bool) Indicate if the application should be fullscreen or not
32fullscreen = 0
33
34[android]
35
36# (bool) Indicate if the application is using AndroidX
37android.useAndroidX = True
38
39# (str) Android NDK version to use
40android.ndk = 21.0.6113669
41
42# (str) Android SDK version to use
43android.sdk = 29
44
45# (str) Android target to use
46android.target = android-29 Can someone please help me figure out why I'm getting this error? Is there something wrong with my buildozer.spec file, or is there another issue at play?