简体   繁体   English

Android JDK安装-无法手动安装JDK

[英]Android jdk installation - cannot install jdk manually

actually I am newbie here..I was trying to install jdk manually ( File > Project Structure). 实际上我是新手。。我试图手动安装jdk(“文件”>“项目结构”)。 I selected the jdk location and clicked ok. 我选择了jdk位置,然后单击确定。 but nothing happened actually. 但实际上没有任何反应。 I disappointed. 我很失望 then I reopened Android studio and got a message please configure jdk.I created java home and installed java se development kit before installing Android studio. 然后我重新打开Android Studio并收到一条消息,请配置jdk。在安装Android Studio之前,我创建了Java主页并安装了Java SE开发套件。 as I got jdk installation error, I tried to install jdk from project structure....... but nothing happened actually..... 当我收到jdk安装错误时,我尝试从项目结构安装jdk .......但实际上没有任何反应.....

help me to install jdk correctly.... 帮助我正确安装jdk...。

Seems like you are installing JDK for Android studio. 似乎您正在安装Android Studio的JDK。 If yes, this will might help you. 如果是,这可能会对您有所帮助。

Guidelines for installing Android Studio 安装Android Studio的准则

  1. First we have to download Android studio Setup for installation. 首先,我们必须下载Android studio安装程序进行安装。 We can download it from here https://developer.android.com/studio/index.html But I have downloaded Android studio from here: https://dl.google.com/dl/android/studio/install/2.1.2.0/android-studio-bundle-143.2915827-windows.exe (version 2.1.2) 我们可以从这里https://developer.android.com/studio/index.html下载。但是我已经从这里下载了Android Studio: https//dl.google.com/dl/android/studio/install/2.1。 2.0 / android-studio-bundle-143.2915827-windows.exe (版本2.1.2)

  2. Secondly download jdk as per your OS requirements ie if you are running windows 32 bit you will download 32 bit version of jdk And if your OS is 64 bit you can download according jdk 其次,根据您的操作系统要求下载jdk,即如果您正在运行Windows 32位,则将下载32位版本的jdk;如果您的操作系统是64位,则可以根据jdk下载

Install JDK before installing Android studio, it's a good practice, Now install JDK which you have downloaded, follow next steps: 3. Double click the jdk's .exe file which we have downloaded in 2nd step. 在安装Android Studio之前先安装JDK,这是一个好习惯,现在安装已下载的JDK,请执行以下步骤:3.双击第二步中下载的jdk的.exe文件。
4. Popup will appear, click yes. 4.将会出现弹出窗口,单击是。 Further it will open installation wizard, click Next 进一步它将打开安装向导,单击下一步。

  1. Click next 点击下一步

  2. It will do some required processes 它将执行一些必需的过程

  3. Choose the destination which you want, but I will stick to this default destination path and Click Next 选择您想要的目的地,但我会坚持使用此默认目的地路径,然后单击“下一步”。

  4. Now it will do some required processes 现在它将执行一些必需的过程

  5. Its done, now click on close 完成,现在点击关闭

Now we have to set environment variable JAVA_HOME and describe its path. 现在我们必须设置环境变量JAVA_HOME并描述其路径。 10. Right click on this pc and click Properties, 10.右键单击此PC,然后单击“属性”,

And this window will be opened and click on Advanced System Settings 然后将打开此窗口,然后单击“高级系统设置”

  1. Now this window will appear and here click on Environment Variables button 现在将出现该窗口,然后单击“环境变量”按钮
  2. Now it'll appear this window and you should click New 现在它将出现在此窗口中,您应该单击新建
  3. Now it write JAVA_HOME in variable name field and go to C:\\Program Files\\Java\\jdk1.8.0_131 and copy this path. 现在,它将JAVA_HOME写入变量名字段,然后转到C:\\ Program Files \\ Java \\ jdk1.8.0_131并复制此路径。 Now past this path in variable value field, and press OK Click OK on Environment variables window Click OK on system properties window 现在在变量值字段中经过此路径,然后按OK在“环境变量”窗口上单击“确定”。

Now JDK installation is completed! 至此,JDK安装完成!

Now it's Time to install Android Studio, so let's start. 现在该安装Android Studio了,让我们开始吧。 14. Now double click to run the android studio's .exe file, which we have downloaded in 1st step. 14.现在,双击运行android studio的.exe文件,该文件已在第一步中下载。 I have downloaded version 2.1.2 我已经下载了版本2.1.2

  1. Setup will start loading and after 100% loading a popup widow will appear (asking for you want to install this software or not) you should click yes. 安装程序将开始加载,并在100%加载后出现一个弹出窗口(询问您是否要安装此软件),您应单击“是”。

If you clicked yes to popup window, it will appear installation wizard. 如果单击是弹出窗口,它将显示安装向导。 And you should click next 然后您应该单击下一步

  1. Click Next 点击下一步

And License Agreement will be open, you should click I Agree “许可协议”将打开,您应该单击“我同意”

  1. If you want to change destination, change it but I will stick to this destination and Click Next 如果要更改目的地,请更改它,但我会坚持使用该目的地,然后单击“下一步”。

  2. And click install 然后点击安装

  3. It'll start extracting files 它将开始提取文件

After this it'll extract Android sdk 之后,它将提取Android SDK

After 100% extraction, now click on Complete and next window will be opened, click Finish. 100%解压缩后,现在单击完成,将打开下一个窗口,单击完成。 20. Now it will start 20.现在它将开始

  1. This popup will appear and you should click second radio button, if you do not have previous version or you do not want to import any settings from previous version of android studio. 如果您没有以前的版本,或者您不想从以前版本的android studio导入任何设置,则会出现此弹出窗口,您应该单击第二个单选按钮。 And you should click first radio button instead and click OK 您应该单击第一个单选按钮,然后单击“确定”。

  2. wizard for download required components will open (This will need your internet data), 下载所需组件的向导将打开(这将需要您的Internet数据),

After downloading finish button will be activated, you should click Finish Finally your Android studio is installed, now you can start the new project or open existing project :) 下载完成后,将激活“完成”按钮,您应该单击“完成”。最后,您的Android Studio已安装完毕,现在您可以启动新项目或打开现有项目了:)

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

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