简体   繁体   English

Android Studio(MAC OS)“正在运行Java 1.8或更高版本的IDE […]安装受支持的JDK”

[英]Android Studio (MAC OS) “IDE to be running Java 1.8 or later […] install a supported JDK”

I'm trying to setup Android Studio. 我正在尝试设置Android Studio。 However i can't fix this problem with my "preview" called the "Rendering Problem" (see the pictures that i've added for more info). 但是,我无法通过名为“渲染问题”的“预览”来解决此问题(有关更多信息,请参见添加的图片)。 I'm pretty new (this is my first android app) to codeing and computing, but i would like som help figuring this out, since i can't find anything on the internet myself. 我是编码和计算的新手(这是我的第一个android应用程序),但是我想让som帮您解决这个问题,因为我自己无法在互联网上找到任何东西。 If its to any help, i'm using the latest update - both Mac OS and Android Studio. 如果有帮助,我正在使用最新的更新-Mac OS和Android Studio。 I have added a picture of my "default project structure" for the SDK Location, i think i've done something wrong here. 我为SDK位置添加了“默认项目结构”的图片,我认为我在这里做错了。

I've also installed the latest version of Java JRE and JDK, i i'm 98% sure that i have set it up in the right way. 我还安装了Java JRE和JDK的最新版本,我98%的确信我已经以正确的方式进行了设置。 Thanks for your time. 谢谢你的时间。

My Java Path is the following: Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk 我的Java路径如下:Library / Java / JavaVirtualMachines / jdk1.8.0_101.jdk

The picture that i've mentioned above 我上面提到的图片

default project structure" for the SDK Location SDK位置的默认项目结构”

转到“文件”->“其他设置”->“默认项目结构”->“ SDK位置”->“ JDK位置”,然后在您的android studio中设置JDK路径,即可解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM