How to set Java SDK path in AndroidStudio?

前端 未结 8 2025
囚心锁ツ
囚心锁ツ 2020-12-08 03:37

I had Java 1.7.0_21 installed and I installed 1.7.0_45 today after uninstalling the previous version. Now Android Studio has stopped compiling projects and says that it cant

8条回答
  •  轮回少年
    2020-12-08 04:10

    Go to File>Project Structure>JDK location: Here, you have to set the directory path exactly same, in which you have installed the java version. Also, you have to mention the paths of SDK for project run on emulator successfully.

    Why This Problem Occurs: It is due to the unsynchronized java version directory that should be available to Android Studio for java code compilance.

提交回复
热议问题