在创建新项目的时候发现了一个问题:
Android Studio and Gradle are using different locations for the JDK
Android Studio和Gradle用的jdk来自不同的位置,说明二者不同步,那么只要我们把他们修改为来自同一个位置的jdk即可。
1.点击File下的Project Strcture选项

Android Studio and Gradle are using different locations for the JDK
2.将系统自带的jre安装路径修改为自己已经安装好的JAVA的JDK路径
Android Studio and Gradle are using different locations for the JDK
然后点击【Apply】生效即可。

相关文章:

  • 2021-04-30
  • 2021-12-18
  • 2021-08-10
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-07-08
  • 2021-08-07
猜你喜欢
  • 2021-10-13
  • 2021-08-14
  • 2021-09-14
  • 2021-05-26
  • 2022-12-23
  • 2021-05-19
  • 2021-06-20
相关资源
相似解决方案