daniel@Andrew-THINK:/mnt/c/users/andrew/new$ buildozer --v android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Read available permissions from api-versions.xml
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.19.7 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /home/daniel/.local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run 'git clone -b master --single-branch https://github.com/kivy/python-for-android.git python-for-android'
# Cwd /mnt/c/users/andrew/new/.buildozer/android/platform
Cloning into 'python-for-android'...
error: chmod on /mnt/c/users/andrew/new/.buildozer/android/platform/python-for-android/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
# Command failed: git clone -b master --single-branch https://github.com/kivy/python-for-android.git python-for-android
# ENVIRONMENT:
# SHELL = '/bin/bash'
# WSL_DISTRO_NAME = 'Ubuntu'
# NAME = 'Andrew-THINK'
# PWD = '/mnt/c/users/andrew/new'
# LOGNAME = 'daniel'
# HOME = '/home/daniel'
# LANG = 'C.UTF-8'
# TERM = 'xterm-256color'
# USER = 'daniel'
# SHLVL = '1'
# WSLENV = ''
# XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'
# PATH = ('/home/daniel/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/daniel/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Users/Andrew/AppData/Roaming/Python/Python37/Scripts:/mnt/c/Users/Andrew/AppData/Local/Programs/Thonny/Scripts:/mnt/c/Users/Andrew/AppData/Local/Programs/Thonny:/mnt/c/Users/Andrew/AppData/Local/Programs/Thonny/lib/site-packages/pywin32_system32:/mnt/c/Python38/Scripts/:/mnt/c/Python38/:/mnt/c/Python27/:/mnt/c/Python27/Scripts:/mnt/c/Program '
'Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files '
'(x86)/NVIDIA '
'Corporation/PhysX/Common:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/Program '
'Files (x86)/ATI '
'Technologies/ATI.ACE/Core-Static:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program '
'Files/nodejs/:/mnt/c/Users/Andrew/AppData/Local/Programs/Python/Python38-32/Scripts/:/mnt/c/Users/Andrew/AppData/Local/Programs/Python/Python38-32/:/mnt/c/Python38/Scripts/:/mnt/c/Python38/:/mnt/c/Python27/:/mnt/c/Python27/Scripts:/mnt/c/Program '
'Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files '
'(x86)/NVIDIA '
'Corporation/PhysX/Common:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/Program '
'Files (x86)/ATI '
'Technologies/ATI.ACE/Core-Static:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program '
'Files/nodejs/:/mnt/c/Python27:/mnt/c/Users/Andrew/AppData/Local/Programs/Microsoft '
'VS '
'Code/bin:/mnt/c/Users/Andrew/AppData/Local/Microsoft/WindowsApps:/snap/bin')
# HOSTTYPE = 'x86_64'
# OLDPWD = '/home/daniel'
# _ = '/home/daniel/.local/bin/buildozer'
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
我正尝试使用kivy和buildozer构建适用于android的应用程序。该应用程序在计算机上运行良好。但是,当我尝试使用命令buildozer --v android debug
为Android构建apk时,发生了此错误。我已经按照https://buildozer.readthedocs.io/en/latest/installation.html#targeting-android上的说明进行了安装,并安装了依赖项。我该如何解决?