你好!
我正在努力将我的.apk转换为API级别= 26的可接受的Google Play .apk。如果可以的话,我想使用终端机和buildozer。
版本
尝试 我进入了buildozer.spec文件,并将API级别和最低API级别更改为26。我尝试了kivy android app步骤1、2和3。我将buildozer.spec中的APK更改为与级别26相匹配。我没有尝试更改NDK。
登录
$ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Read available permissions from api-versions.xml
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /Users/kiai/anaconda3/envs/Kivy3/bin/cython
# Search for Java compiler (javac)
# -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
# Search for Java keytool (keytool)
# -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool
# Install platform
# Run 'pip install -q "appdirs" "colorama>=0.3.3" "sh>=1.10,<1.12.5" "jinja2" "six"'
# Cwd None
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
# Apache ANT found at /Users/kiai/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK is missing, downloading
# Downloading http://dl.google.com/android/android-sdk_r26-macosx.zip
# Unpacking Android SDK
# Run 'unzip /Users/kiai/.buildozer/android/platform/android-sdk_r26-macosx.zip'
# Cwd /Users/kiai/.buildozer/android/platform
Archive: /Users/kiai/.buildozer/android/platform/android-sdk_r26-macosx.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/kiai/.buildozer/android/platform/android-sdk_r26-macosx.zip or
/Users/kiai/.buildozer/android/platform/android-sdk_r26-macosx.zip.zip, and cannot find /Users/kiai/.buildozer/android/platform/android-sdk_r26-macosx.zip.ZIP, period.
# Command failed: unzip /Users/kiai/.buildozer/android/platform/android-sdk_r26-macosx.zip
#
# 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
请帮助我!