这是我的第一个kivy app.It根据日期显示不同的图像。它在PC上完美运行但是buildozer apk没有运行和buildozer部署在设备卡住而没有错误消息。我对这个问题发疯了。 这是我的应用代码:
andrea@andrea-VirtualBox ~/Desktop/kivy $ buildozer android_new 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.18.4 (i386).
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-8-openjdk-i386/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-8-openjdk-i386/jre/bin/keytool
# Install platform
# Apache ANT found at /home/andrea/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/andrea/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/andrea/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Run 'python -m pythonforandroid.toolchain create --dist_name=quta --bootstrap=sdl2 --requirements=kivy,hostpython2 --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/andrea/Desktop/kivy/.buildozer/android/platform/build'
# Cwd /home/andrea/Desktop/kivy/.buildozer/android/platform/python-for-android-master
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI
[INFO]: Available Android APIs are (19)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK
[INFO]: Got NDK version from $ANDROIDNDKVER
[INFO]: Using Google NDK r9c
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: Found the following toolchain versions: ['4.6', '4.8', 'clang3.3']
[INFO]: Picking the latest gcc toolchain, here 4.8
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
[INFO]: Of the existing distributions, the following meet the given
[INFO]: -> running ant debug
working: BUI[INFO]: <- directory context /home/andrea/Desktop/kivy/.buildozer/android/platform/python-for-android-master
[INFO]: # Copying APK to current directory
[INFO]: # Found APK file: /home/andrea/Desktop/kivy/.buildozer/android/platform/build/dists/quta/bin/QuTA-0.1-debug.apk
[INFO]: -> running cp /home/andrea/Desktop/kivy/....(and 69 more)
# Android packaging done!
# APK QuTA-0.1-debug.apk available in the bin directory
# Run '/home/andrea/.buildozer/android/platform/android-sdk-20/platform-tools/adb devices'
# Cwd None
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
LGH955a5caf8f0 device
# Deploy on LGH955a5caf8f0
# Run '/home/andrea/.buildozer/android/platform/android-sdk-20/platform-tools/adb install -r /home/andrea/Desktop/kivy/bin/QuTA-0.1-debug.apk'
# Cwd /home/andrea/.buildozer/android/platform
这里是buildozer日志:
names
我还有另一个问题。 Python datetime模块在Android设备上运行? 不管怎样,谢谢!