如何设置AndroidStudio Java SDK的路径? [英] How to set Java SDK path in AndroidStudio?
问题描述
我已经安装了Java SDK 1.7.0_21和我装今天1.7.0_45卸载previous版本之后。现在AndroidStudio已停止编制项目和说,它不能找到1.7.0_21文件夹。我怎样才能设置Java SDK的新路径?我已经改变了环境变量,但也没有工作。
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.
推荐答案
在的IntelliJ IDEA(并有可能在Android的工作室一样)去的文件>项目结构> [平台设定]>的SDK 的。你需要或者更新您目前的SDK配置以使用新的目录,或者定义一个新的,然后更改项目的设置,以使用新的。
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.
这篇关于如何设置AndroidStudio Java SDK的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!