Cordova构建应用程序问题| JDK | Android目标| avdmanager

时间:2017-10-06 20:45:59

标签: java android cordova avd

我安装了以下工具的最新版本:

  1. 的node.js
  2. JDK 8
  3. Android Studio
  4. 科尔多瓦
  5. 我创建了一个应用程序,但是当我尝试为Android平台构建时,会给我以下错误:

        Error: Requirements check failed for JDK 1.8 or greater 
    

    如果我尝试cordova requirments,我会收到以下回复:

    Requirements check results for android:
    Java JDK: installed
    Android SDK: installed true
    Android target: not installed
    avdmanager: Command failed with exit code 1 Error output:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
            at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
            at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
            at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
            at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
            at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
    Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
            at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
            at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
            at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
            ... 5 more
    Gradle: installed /Applications/Android Studio.app/Contents/gradle/gradle-3.2/bin/gradle
    

    知道还有什么我可以尝试更新或修复这些错误吗?

0 个答案:

没有答案