Android Studio - supplied javaHome is not a valid folder

前端 未结 6 1427
小鲜肉
小鲜肉 2020-12-05 04:07

I decided to update my JDK to Java 8, and installed to the default location of C:\\Program Files\\Java\\jdk1.8.0 with a jre subdirectory.

I

6条回答
  •  孤城傲影
    2020-12-05 04:34

    Try to delete all .iml files and .idea, and re-import the project from Gradle. Worked for me (provided you have everything else set up).

    This error happens when you switch from Intellij to Android Studio, or the other way around, and load the same project. Looks like their project model is not compatible.

提交回复
热议问题