当我使用buildozer将其转换为apk时,我正在使用KivyMD创建myapp,看来buildozer只能理解kivy。
[app]
# (str) Title of your application
title = Ros 3
# (str) Package name
package.name = myapp
# (str) Package domain (needed for android/ios packaging)
package.domain = org.test
# (str) Source code where the main.py live
source.dir = .
# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas
# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png
# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec
# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin
# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg
....
`
答案 0 :(得分:0)
您需要在buildozer.spec文件中将kivymd添加到您的需求中