【发布时间】:2021-10-14 23:22:03
【问题描述】:
我一直在尝试使用 Cordova 和 JDK 8 从 Angular 创建一个 Android 应用程序。
运行cordova build android 后出现此错误:
组件版本:
- 角 9
- 7 年级
- 科尔多瓦 10
- SDKmanager 5
Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
我尝试过的事情:
- 将
https://services.gradle.org/distributions/gradle-6.5-all.zip重命名为http,但它再次将自身重命名为https - 重新安装 JDK 8
- 以管理员身份运行 CMD/Powershell
【问题讨论】:
标签: java android cordova java-8 android-sdk-manager