执行 dx 命令出现的问题:
1、错误一
Error:Could not create the Java Virtual Machine.
Error:A Fatal exception has occurred,Program will exit.
2、错误二
Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit
我是用的 JDK 版本是 14 ;尝试了网上好几个方法还是没解决,
最后尝试降低 JDK 版本为 1.8 ,果然错误没有了
解决:
降低 JDK 版本
附加:
jdk 1.8 官网地址