命令行使用avdmanager的时候报Unsupported major.minor version 52.0是怎么回事啊
澳门银河官网
澳门银河官网
当前位置 : 澳门银河官网 > 澳门银河官网开户

命令行使用avdmanager的时候报Unsupported major.minor version 52.0是怎么回事啊

java version "1.7.0_121"
OpenJDK Runtime Environment IcedTea 2.6.8 7u121-2.6.8-1ubuntu0.14.04.3
OpenJDK 64-Bit Server VM build 24.121-b00, mixed mode

javac 1.7.0_121

我装的android studio版本是2.3.2,用他创建、运行、编译项目都没有问题的

现在我想用命令行的模拟器,android命令已经过期了

The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager

我运行avdmanager报如下错误

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/AvdManagerCli : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1Native Method
    at java.lang.ClassLoader.defineClassClassLoader.java:803
    at java.security.SecureClassLoader.defineClassSecureClassLoader.java:142
    at java.net.URLClassLoader.defineClassURLClassLoader.java:442
    at java.net.URLClassLoader.access$100URLClassLoader.java:64
    at java.net.URLClassLoader$1.runURLClassLoader.java:354
    at java.net.URLClassLoader$1.runURLClassLoader.java:348
    at java.security.AccessController.doPrivilegedNative Method
    at java.net.URLClassLoader.findClassURLClassLoader.java:347
    at java.lang.ClassLoader.loadClassClassLoader.java:425
    at sun.misc.Launcher$AppClassLoader.loadClassLauncher.java:308
    at java.lang.ClassLoader.loadClassClassLoader.java:358
    at sun.launcher.LauncherHelper.checkAndLoadMainLauncherHelper.java:482

不知道该如何解决

广告位

澳门银河官网