今天Android Studio导入工程失败,报错信息如下:

Android studio报错:Could not create the Java Virtual Machine. Invalid maximum heap size:-Xmx

说什么JVM不能创新,无效的堆大小。

百度后的解决方案无效,但获得启发:JDK的版本与系统的对应关系。

我安装的是32位的JDK,系统是64位的,所以需要安装64位的JDK来解决。

Android studio报错:Could not create the Java Virtual Machine. Invalid maximum heap size:-Xmx

通过java -version来查看,若没有打印64-bit则说明是32位的。

相关文章:

  • 2021-07-16
  • 2022-12-23
  • 2022-02-08
  • 2022-01-26
  • 2021-11-20
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-02
  • 2022-12-23
  • 2021-08-07
  • 2021-10-01
  • 2021-06-26
  • 2021-11-14
相关资源
相似解决方案