buildozer调试错误“不受支持的major.minor版本52.0”错误

时间:2019-09-28 10:55:50

标签: kivy apk buildozer

当我运行“ buildozer android debug”时,出现此错误,关于jave也是一样! 我不确定 ;在运行命令后,无论如何我都会得到:

这是我在终端上运行的所有命令,我认为与该问题有关

$ apt-get update

$ apt-get install default-jdk

enter code here$ wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
$unzip sdk-tools-linux-3859397.zip
$ export PATH=/opt/pradip/tools:/opt/pradip/tools/bin:/usr/local/sbin:/usr/local/bin:
/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/bin

以下是我运行“ buildozer android debug”时遇到的错误

root@kivy-VirtualBox:/home/kivy/Desktop# buildozer android debug

# Check configuration tokens

Buildozer is running as root!

This is not recommended, and may lead to problems later.

Are you sure you want to continue [y/n]? y


# 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.17.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-7-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool
# Install platform
# Run '/usr/bin/python -m pip install -q --user \'appdirs\' 
\'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' 
\'sh>=1.10; sys_platform!="nt"\' \'pep517\' \'pytoml\' \'virtualenv\''
# Cwd None
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. 
Please upgrade your Python as Python 2.7 won't be maintained after that 
date. A future version of pip will drop support for Python 2.7. More 
details about Python 2 support in pip, can be found at 
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
# Apache ANT found at /root/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /root/.buildozer/android/platform/android-sdk
# Android NDK found at /root/.buildozer/android/platform/android-ndk-r17c
# Installing/updating SDK platform tools if necessary
# Run '/root/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager 
tools platform-tools'
# Cwd /root/.buildozer/android/platform/android-sdk
Exception in thread "main" java.lang.UnsupportedClassVersionError:
com/android/sdklib/tool/sdkmanager/SdkManagerCli : Unsupported major.minor
version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
# Command failed: /root/.buildozer/android/platform/android- 
sdk/tools/bin/sdkmanager tools platform-tools
# 
# 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

如果以上命令是错误的原因,请告知如何解决,否则 请告诉我如何以简单的方式解决细节,因为  我尝试浏览互联网,但一无所获 谢谢 注意:我在VirtualBox上使用buildozer

0 个答案:

没有答案