How to set Java SDK path in AndroidStudio?

2019-01-22 05:36发布

I had JAVA SDk 1.7.0_21 installed and I installed 1.7.0_45 today after uninstalling the previous version. Now AndroidStudio has stopped compiling projects and says that it cant locate the 1.7.0_21 folder. How can I set the new path for Java SDK? I have changed the environment variables also but didnt work.

7条回答
爷的心禁止访问
2楼-- · 2019-01-22 06:02

In IntelliJ IDEA (and likely the same in Android Studio) go to File > Project Structure > [Platform Settings] > SDKs. You'll need to either update you current SDK configuration to use the new directory, or define a new one and then change your project's settings to use the new one.

查看更多
登录 后发表回答