gpt4 book ai didi

ionic-framework - 安卓目标 : not installed (cordova requirements)

转载 作者:行者123 更新时间:2023-12-05 05:17:23 26 4
gpt4 key购买 nike

我是 ionic 的新手,我尝试构建我的应用程序,但失败了,所以我运行了“cordova requirements”,但出现了这个错误:

$ cordova requirements
Android Studio project detected

Requirements check results for android:
Java JDK: installed
Android SDK: installed true
Android target: not installed
cmd: 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 D:\Program Files\Android\Android Studio\gradle\gradle-4.1\bin\gradle

有人知道如何解决这个问题吗?

谢谢!

最佳答案

这应该可以简单地解决它!如此处所述 https://stackoverflow.com/a/50097394/2642351尝试安装低于 9 的 JDK 版本,例如 JDK 8 左右。并在环境变量中更新您的 JAVA_HOME 路径

关于ionic-framework - 安卓目标 : not installed (cordova requirements),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49309922/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com