如果运行此
,我想安装Android SDK和Cordova$cordova requirements
我有同样的问题
Requirements check results for android:
Java JDK: installed
Android SDK: installed true
Android target: not installed
android: Command failed with exit code 1 Error output:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/AvdManagerCli : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Gradle: not installed
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
Error: Some of requirements check failed
我搜索了错误,但我找不到一个好的解决方案,大多数答案适用于Windows或Mac但不适用于Linux
sdk = /home/myland/Documents/tools
platform-tools = /home/myland/Documents/tools/platform-tools
我该怎么办?
答案 0 :(得分:0)
我将java更新到版本8并安装Gradle并制作AVD android 现在好了
# cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-26,android-25
Gradle: installed /usr/share/gradle/bin/gradle
答案 1 :(得分:0)
如果有任何正文在linux中得到错误就可以了 第一步 下载最新的Android stdio,JDK持续和NodeJs安装cordova
npm install -g cordova --save
第二步
export ANDROID_HOME=/home/user/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
/home/user/android-studio/gradle/gradle-4.1/bin/gradle
如果在主页文件夹中安装下载 谢谢