首页 >>  正文

安卓安装jdk

来源:baiyundou.net   日期:2024-09-24

Android Studio 安装前需要先安装好JDK并配置好其中的环境,我的系统是win11具体安装的方法可以参照

一、Android Studio 下载地址及版本说明

1.Android 开发者官网:(1)Android Developers (全球,需科学上网)


(2)https://developer.android.google.cn/index.html (国内,可直接访问)


2.Android Studio 国内下载地址:

Download Android Studio and SDK tools | Android Developers

二、安装步骤图解

1、首先个人建议在安装目录下分别创建SDK和Studio文件夹,用以分别存放SDK文件和安装Android Studio :


2、手动双击已下载的Android Studio安装包:

3、进入欢迎向导,直接点击下一步继续:

4、选择要安装的组件,默认下一步即可(如果不需要模拟器也可以取消 Android Virtual Device 勾选):

5、选择 Android Studio 的安装位置(第1步创建的Studio文件夹),然后下一步:

6、选择开始菜单,默认下一步即可:

7、Android Studio 正在安装中:

8、安装完成页面,直接下一步即可:

9、点击Finish并开启 Android Studio:

点击finish就安装结束了

三、SDK的安装

1、先进入官网就是点击第一章的链接,然后点击download options

2、点击以后,往下滑动,看见如图所示圈的,选择对应的版本,我的电脑是widow系统这里我们选择window系统,点击蓝色的压缩包,选择同意,点击下载即可。

下载好的~

3、将下载好的SDK放在之前创建好的SD文件夹里,主要是为了方便找这东西在什么地方。

4、然后进行解压

5、Android Studio工具设置SDK Location

第一种方式

1.刚进入点击配置configure

2.点击settings

第二种方式

如果之前有下过,这个打开直接就是这个界面。

4.点击以后选择相应的配置SDK的地方,Appearance&Behavior-System settings-Android SDK,点击edit

5.

选择好点击next

点击NEXT

选择我接受Accept-next

等待安装和下载一些东西

点击finish


6.Android SDK 下载相关资源

1.选择对应的版本

选择相应的Android版本进行下载

2.选择相应的SDK工具进行下载

可以参照我的进行勾选

3.完成勾选以后点击Apply进行下载


点击OK

选择accept-next

等待下载

选择默认然后点击next

一样点击同意,选择下一个

这样的显示表示已经成功了,点击finish.

7.SDK和JDK的环境配置方法

1.关于jdk的环境配置可以参照这个

全网最细最新win11 java环境变量的配置 - W凯的文章 - 知乎 https://zhuanlan.zhihu.com/p/528004292

2.SDK的环境配置

按照jdk的环境配置方法打开环境变量,新建系统变量ANDROID_HOME , 值为SDK的目录

双击点击这个path路径

点击新建输入%ANDROID_HOME%\\platform-tools;%ANDROID_HOME%\\tools配置SDK的platform-tools和tools目录

后面点击确认

判断是否sdk配置成功,打开cmd命令框输入adb

这样就代表成功了

如果不成功可以尝试这么写,笔者就是不成功,换了一种写法就成功了,还有在修改环境变量以后,一定要重新打开cmd命令框。

四、Android模拟器的下载

1.点击右上角的按钮AVM manger

2.点击以后就出现了这么个界面,这个时候点击virtual-create virtual device

3.选择不同的虚拟设备,这里我选择的是手机phone,可以自己根据自己的实际情况进行选择,选择好以后点击next

等待下载

完成点击finish

4.完成以后点击next

6.选择是否是竖屏的,笔者选择的是竖屏的,设置设备名字。选择好以后进行点击finish

注意,如果镜像下载不成功请参照SDK的tools勾选的选项是否和笔者一样,勾选这一项了,如果不没有选择上重新下载试试。

7.点击启动虚拟手机

启动以后就是这样,到这里我们的模拟器就弄好了

五、创建第一个Android Studio项目

1、首先打开已安装的Android Studio进入相关页面,点击file-new-newproject

2、默认选择“Empty Activity”,表示项目包含一个空的Activity,然后点击“Next”按钮:

3、填写并选择项目相关信息后,点击“Finish”按钮(注意:代码保存位置路径不能含有中文名称):

4、等待

5.进行相关的配置

点击file-proje structure


项目里配置JDK

选择好之前配置好的jdk的路径,一般这个是可以自己搜索到的,选择好以后点击OK、



5、编译成功后,界面上的几个重要功能如下图所示,其中点击app后面的“Run”按钮即可将项目发布到终端上:

6.显示成功

注意一些界面的一些功能

","gnid":"9bb8dbcde0cd5cd37","img_data":[{"flag":2,"img":[{"desc":"","height":"241","title":"","url":"https://p0.ssl.img.360kuai.com/t017299fd17cc42255d.jpg","width":"910"},{"desc":"","height":"534","title":"","url":"https://p0.ssl.img.360kuai.com/t0137377c2dbce6fe9b.webp","width":"720"},{"desc":"","height":"390","title":"","url":"https://p0.ssl.img.360kuai.com/t0152b7d48bccd67711.jpg","width":"503"},{"desc":"","height":"390","title":"","url":"https://p0.ssl.img.360kuai.com/t01d652349dcd0969a1.jpg","width":"503"},{"desc":"","height":"390","title":"","url":"https://p0.ssl.img.360kuai.com/t01933873296f04cfa8.jpg","width":"503"},{"desc":"","height":"390","title":"","url":"https://p0.ssl.img.360kuai.com/t01d6d94065c0eeb3bc.jpg","width":"503"},{"desc":"","height":"390","title":"","url":"https://p0.ssl.img.360kuai.com/t014016be838a1754cb.jpg","width":"503"},{"desc":"","height":"390","title":"","url":"https://p0.ssl.img.360kuai.com/t015950c0e9e583c83a.webp","width":"503"},{"desc":"","height":"390","title":"","url":"https://p0.ssl.img.360kuai.com/t01495aa7b01a3bbfef.jpg","width":"503"},{"desc":"","height":"534","title":"","url":"https://p0.ssl.img.360kuai.com/t01a4c47cf63625af9b.webp","width":"720"},{"desc":"","height":"488","title":"","url":"https://p0.ssl.img.360kuai.com/t01031a872d8fa1a12e.webp","width":"720"},{"desc":"","height":"512","title":"","url":"https://p0.ssl.img.360kuai.com/t01d5a827326b1d4f99.webp","width":"720"},{"desc":"","height":"53","title":"","url":"https://p0.ssl.img.360kuai.com/t011108e63c2688249e.png","width":"854"},{"desc":"","height":"433","title":"","url":"https://p0.ssl.img.360kuai.com/t01cdbd9ea3971da92f.webp","width":"720"},{"desc":"","height":"486","title":"","url":"https://p0.ssl.img.360kuai.com/t014825d1769967d1f4.webp","width":"720"},{"desc":"","height":"433","title":"","url":"https://p0.ssl.img.360kuai.com/t01291a2be57426ae33.webp","width":"720"},{"desc":"","height":"396","title":"","url":"https://p0.ssl.img.360kuai.com/t01faa8a82cbb6c6bfd.jpg","width":"622"},{"desc":"","height":"246","title":"","url":"https://p0.ssl.img.360kuai.com/t0140a83a5d7ea225fd.jpg","width":"303"},{"desc":"","height":"374","title":"","url":"https://p0.ssl.img.360kuai.com/t014c5a1616fdd70bba.webp","width":"720"},{"desc":"","height":"519","title":"","url":"https://p0.ssl.img.360kuai.com/t010c48a4956e5f3815.webp","width":"720"},{"desc":"","height":"519","title":"","url":"https://p0.ssl.img.360kuai.com/t015dfda3d092869c6d.webp","width":"720"},{"desc":"","height":"457","title":"","url":"https://p0.ssl.img.360kuai.com/t011edc4b080f8db3af.webp","width":"720"},{"desc":"","height":"457","title":"","url":"https://p0.ssl.img.360kuai.com/t01422270d37eb28dee.webp","width":"720"},{"desc":"","height":"457","title":"","url":"https://p0.ssl.img.360kuai.com/t01cbe310da836b904e.webp","width":"720"},{"desc":"","height":"457","title":"","url":"https://p0.ssl.img.360kuai.com/t015b04a8ce804595f5.webp","width":"720"},{"desc":"","height":"685","title":"","url":"https://p0.ssl.img.360kuai.com/t01328157593883fe0b.jpg","width":"1080"},{"desc":"","height":"457","title":"","url":"https://p0.ssl.img.360kuai.com/t01e399c4e90c81b77f.webp","width":"720"},{"desc":"","height":"519","title":"","url":"https://p0.ssl.img.360kuai.com/t01c811113721d1f7c8.webp","width":"720"},{"desc":"","height":"519","title":"","url":"https://p0.ssl.img.360kuai.com/t01f3c92a5aaad18be5.webp","width":"720"},{"desc":"","height":"519","title":"","url":"https://p0.ssl.img.360kuai.com/t011eb8e782672c99c2.webp","width":"720"},{"desc":"","height":"519","title":"","url":"https://p0.ssl.img.360kuai.com/t014d10896ee8dbbb67.webp","width":"720"},{"desc":"","height":"519","title":"","url":"https://p0.ssl.img.360kuai.com/t0189210258dd610c86.webp","width":"720"},{"desc":"","height":"309","title":"","url":"https://p0.ssl.img.360kuai.com/t01299f6a9e0707b012.jpg","width":"440"},{"desc":"","height":"517","title":"","url":"https://p0.ssl.img.360kuai.com/t0188f2fa564e0c43e5.webp","width":"720"},{"desc":"","height":"517","title":"","url":"https://p0.ssl.img.360kuai.com/t0121bc889ddea1a176.webp","width":"720"},{"desc":"","height":"382","title":"","url":"https://p0.ssl.img.360kuai.com/t01b936e85f49c3a288.webp","width":"720"},{"desc":"","height":"388","title":"","url":"https://p0.ssl.img.360kuai.com/t01f6b2bcff42a95f5d.webp","width":"720"},{"desc":"","height":"689","title":"","url":"https://p0.ssl.img.360kuai.com/t01ac025ea619897dc8.jpg","width":"1280"},{"desc":"","height":"517","title":"","url":"https://p0.ssl.img.360kuai.com/t019cd78f208d240271.webp","width":"720"},{"desc":"","height":"666","title":"","url":"https://p0.ssl.img.360kuai.com/t017b14bd5f81ff282b.webp","width":"632"},{"desc":"","height":"666","title":"","url":"https://p0.ssl.img.360kuai.com/t01c1666fe6746c2412.webp","width":"632"},{"desc":"","height":"570","title":"","url":"https://p0.ssl.img.360kuai.com/t01f6d026c31f67b34e.webp","width":"541"},{"desc":"","height":"605","title":"","url":"https://p0.ssl.img.360kuai.com/t015bac08676abe6cf0.webp","width":"493"},{"desc":"","height":"376","title":"","url":"https://p0.ssl.img.360kuai.com/t01df347ff1814e0dbe.webp","width":"720"},{"desc":"","height":"96","title":"","url":"https://p0.ssl.img.360kuai.com/t019511a13c090e60ca.jpg","width":"289"},{"desc":"","height":"340","title":"","url":"https://p0.ssl.img.360kuai.com/t01810c92938977ee18.webp","width":"720"},{"desc":"","height":"820","title":"","url":"https://p0.ssl.img.360kuai.com/t011e367ddbb5f3c1e4.jpg","width":"441"},{"desc":"","height":"567","title":"","url":"https://p0.ssl.img.360kuai.com/t019d017adfee72edf4.webp","width":"720"},{"desc":"","height":"517","title":"","url":"https://p0.ssl.img.360kuai.com/t01a1fbdcf812a4d018.webp","width":"720"},{"desc":"","height":"517","title":"","url":"https://p0.ssl.img.360kuai.com/t011a86347c46f1a506.webp","width":"720"},{"desc":"","height":"567","title":"","url":"https://p0.ssl.img.360kuai.com/t015e9bce3febe58ac7.webp","width":"720"},{"desc":"","height":"567","title":"","url":"https://p0.ssl.img.360kuai.com/t0116dab2a7874a5c2d.webp","width":"720"},{"desc":"","height":"519","title":"","url":"https://p0.ssl.img.360kuai.com/t0139d0bd8b95246019.webp","width":"720"},{"desc":"","height":"579","title":"","url":"https://p0.ssl.img.360kuai.com/t019de2a5589872cf4b.jpg","width":"431"},{"desc":"","height":"838","title":"","url":"https://p0.ssl.img.360kuai.com/t0133773c38723acd99.jpg","width":"411"},{"desc":"","height":"554","title":"","url":"https://p0.ssl.img.360kuai.com/t0110c778389baf6dbc.webp","width":"720"},{"desc":"","height":"517","title":"","url":"https://p0.ssl.img.360kuai.com/t0150c2716482eabc38.webp","width":"720"},{"desc":"","height":"517","title":"","url":"https://p0.ssl.img.360kuai.com/t01b8c5252dd8afdf08.webp","width":"720"},{"desc":"","height":"517","title":"","url":"https://p0.ssl.img.360kuai.com/t01f79a89a20c82d92f.webp","width":"720"},{"desc":"","height":"554","title":"","url":"https://p0.ssl.img.360kuai.com/t01262aafcea5abbc09.webp","width":"720"},{"desc":"","height":"504","title":"","url":"https://p0.ssl.img.360kuai.com/t01841e1adb8238fea1.jpg","width":"314"},{"desc":"","height":"379","title":"","url":"https://p0.ssl.img.360kuai.com/t01da97667231eb9e2d.webp","width":"720"},{"desc":"","height":"443","title":"","url":"https://p0.ssl.img.360kuai.com/t014d714004b16d7b26.jpg","width":"513"},{"desc":"","height":"514","title":"","url":"https://p0.ssl.img.360kuai.com/t011ecf38d950ecbb43.webp","width":"720"},{"desc":"","height":"976","title":"","url":"https://p0.ssl.img.360kuai.com/t01da92cf79b2760194.webp","width":"453"},{"desc":"","height":"554","title":"","url":"https://p0.ssl.img.360kuai.com/t0178e94622236a9feb.webp","width":"720"}]}],"original":0,"pat":"art_src_0,fts0,sts0","powerby":"hbase","pub_time":1685598872000,"pure":"","rawurl":"http://zm.news.so.com/cd19486579f76a7c0ca0f745e38ef820","redirect":0,"rptid":"f916e178f97c7f1a","rss_ext":[],"s":"t","src":"大凡","tag":[{"clk":"ktechnology_1:android","k":"android","u":""}],"title":"Android studio安装教程

祝盲界2200怎么使用java做安卓软件 -
关宜朋19790813961 ______ 第一步, 安装jdk,配置jdk环境.百度搜jdk配置 第二步,安装Android Studio +SDK.或者Eclipse+ADT+Android SDK.第三步,需要Android机子或者安装虚拟机.如有疑问,请提出.记得采纳!

祝盲界2200安卓系统下怎么安装windows系统的文件 -
关宜朋19790813961 ______ 准备工作1. 一台联网的PC.2. Android SDK 这个程序是用来抢建虚拟环境的,因为安卓不能运行在Intel x86平台上所以我们只能虚拟出一个安卓环境.3. JDK 对安卓程序有一定了解的人都知道,Android SDK采用的是Java,所以必须有Java环...

祝盲界2200androidsdk环境变量怎样配置
关宜朋19790813961 ______ 1、下载java,并且安装. 下载地址: download-1501626.html 2、安装的时候,最好别改安装路径,默认路径一直点下一步即可! 3、安装完成后,接下来就是配置java环境变量了. 4、打开计算机属性,点击高级系统设置 5、选择“高级”-“...

祝盲界2200如何正确搭建android的开发环境 -
关宜朋19790813961 ______ 分为五个步骤来完成Android开发环境的搭建. 第一步:安装JDK. 要下载Oracle公司的JDK可以百度“JDK”进入Oracle公司的JDK下载页面,选择自己电脑系统的对应版本即可. 第二步:配置Windows上JDK的变量环境 . JAVA_HOME 先...

祝盲界2200android crack tool怎么用 -
关宜朋19790813961 ______ 1. 下载并安装JDK.注意是JDK,不是JRE,也不是server JRE这里用的是windows 64位版本,具体的文件名称是 jdk-8u25-windows-x64.exe2. 安装完成以后,第一折腾的地方来了.不知道JDK的安装程序怎么考虑的,装完以后,还需要手工添...

祝盲界2200Android Studio 安装时出现 No JVM installation found 怎么办 -
关宜朋19790813961 ______ NO JVM installation found. please install a 64-bit JDK,这里因为电脑上没有装64位的JDK引起的报错. 解决方案: 1. 重装64位JDK 并配置环境变量. 2. 安装好JAVA的JDK64位后,再安装Android Studio如果还有这种提示出错.不是安装软件...

祝盲界2200如何使用javac - Android开发环境 -
关宜朋19790813961 ______ 安装Java Jdk 在安装eclipse之前,应确保已安装了Java Jdk!第一步:双击jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008进行安装 第二步:(可选)修改Java Jdk安装路径,这样便于环境变量配置.(也可以按照默认安装路径安装,只是...

祝盲界2200Android开发究竟用什么工具,Eclipse -
关宜朋19790813961 ______ 1安装JDK,-对应的安装文件:jdk-6u22-windows-i586.exe2安装 Android SDK-------------对应的安装文件:android-sdk_r17-windows.zip3安装Tomcat--------对应的安装文件:apache-tomcat-7.0.26-windows-x86.zip4安装Ant-------对应的安装文件:...

祝盲界2200apk改之理的jdk在哪里怎样配置
关宜朋19790813961 ______ apk改之理的jdk配置:1.先下载安装JDK1.6安装包2.安装jdk1.6,装路径,假定安装路径为D:\Develop\JDK6.安装时有2个部分选择安装,1个是JDK,1个是JRE(建议都装)3.重新打开APK改之理后,它1般就可以直接找到JDK的安装路径了,不...

祝盲界2200android studio安装前的JDK的安装与配置怎么弄 -
关宜朋19790813961 ______ 安装包中有一个 java图标 扩展名为.exe,点击安装. 安装后要把jdk中bin的路径配到环境变量path中(我的电脑右键属性-高级系统设置-高级-环境变量-系统变量-path(是添加分号隔开,不要把其他的删了,))

(编辑:自媒体)
关于我们 | 客户服务 | 服务条款 | 联系我们 | 免责声明 | 网站地图 @ 白云都 2024