gpt4 book ai didi

android - 检查花园要求后,Buildozer 无法编译平台

转载 作者:行者123 更新时间:2023-11-29 23:22:14 40 4
gpt4 key购买 nike

我正在尝试为我用 Python 3 编写的程序制作一个 Android 应用。

在此之前我已经处理并解决了几个问题,但目前我不知道是什么导致了这个问题。如果您需要任何其他信息来帮助我解决此问题,我将非常乐意添加。

eddie@eddie-VirtualBox:~$ buildozer android debug deploy run
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.19.0.5 (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 /usr/local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool
# Install platform
# Run "/usr/bin/python3 -m pip install -q --user 'appdirs' 'colorama>=0.3.3' 'jinja2' 'six'"
# Cwd None
# Apache ANT found at /home/eddie/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/eddie/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/eddie/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=What\'s for Dinner? --bootstrap=sdl2 --requirements =python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/eddie/.buildozer/android/platform/build"'
# Cwd /home/eddie/.buildozer/android/platform/python-for-android-new-toolchain
/bin/sh: 1: Syntax error: Unterminated quoted string
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=What's for Dinner? --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/eddie/.buildozer/android/platform/build"
#
# 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

最佳答案

您看到的错误是由与结束引号不匹配的起始引号引起的。

大多数命令行语法都要求您对使用的任何空格进行转义。在 Unix 系统中,如果一个文件名为“Stack Overflow.txt”,要访问它您需要编写

nano Stack\ Overflow.txt

或者:

nano "Stack Overflow.txt"

所以在你的情况下我假设在这一行

# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=What's for Dinner? --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/eddie/.buildozer/android/platform/build"

晚餐吃什么?可能会破坏字符串,导致引用不匹配。我不知道字符串来自哪里。你可以告诉我吗?因为据说引号被转义了,但空格没有。

关于android - 检查花园要求后,Buildozer 无法编译平台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54117395/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com