Install/Configure Android environment

First of all, we need to understand what an environment is. An environment can simply be understood as a tool used for development, or it can be understood as a software used for development. So what are the currently popular software used to develop Android?

1. Android Studio - Currently Android Studio is the mainstream and is used more often. It is very similar to IDEA.

, students who have studied Java should be very familiar with it.

2.Eclipse - Eclipse was used a lot in the past, but the operation is more cumbersome than Studio, but

The function is indeed more powerful than Android Studio

.....

All in all, a tool is always a tool. Programmer development still depends on logic and design, but I personally prefer to use Android Studio.

So, follow my footsteps and download Android Studi now. (Foolish installation, suitable for novices. If you have any suggestions from experts, you are welcome to give them)

Step 1: Download JDK

  1. Download JDK first. If you have studied Java, you should be familiar with JDK. It is necessary to develop Java JDK. It is not necessary for Android development.

However, some functions may be limited, so it is recommended to install them together, and you can also learn some new knowledge.

a. Search JDK and find the official website (if you can’t find it, don’t worry, because I didn’t know it when I started learning, so here is the URL, and you can copy it in the browser and use it. Java Download | Oracle China (oracle . com) )

b. When the mouse wheel slips in the middle, there is a Java 8 suggestion to use Java 8, because it is enough for you to learn and develop. If you want to learn

Students who are interested in Java can try it themselves. (By the way, students who are learning Android are recommended to learn Java first, because Java is the foundation)

2. Choose to download the version that suits your computer. My computer is 64-bit. Choose the X64 compressed archive package (you can translate it if you don’t understand English). Note: This compressed package is compressed into the drive letter you want to put. Configure the environment. Variables can be used (discussed later)

a.在官网下载要创建一个账号,如果不想创建账号的话,这里我放了一个网盘链接,可以自行选择下载 https://pan.baidu.com/s/1dFktCoZMKM2jR7fAESqZkg 提取码 0922

b.用压缩工具解压到一个盘符里面,我这边直接解压在D盘根目录了,同学们请自行选择

到这里就下载完JDK啦,接下来就是配置前面提到的环境变量了。

第二步:配置环境变量

  1. 如果是win10的话,直接点击此电脑右键,属性-->高级系统设置-->环境变量

(win11的同学们自己查一下,大致操作不会差很多的)

  1. 点击新增环境变量,注意是下面的系统变量而不是用户变量哦

  1. 新建一个变量,变量名叫做JAVA_HOME,变量值可以浏览目录直接选择下载解压到JDK的目录选择JDK最外层的目录,或者自己复制他的路径,注意不要模仿我的,有可能会有出入。我解压的目录:D:\jdk1.8.0_361

  1. 看看系统变量中有没有Path,有的话直接添加,没有先创建

a.有的话双击两下,就可以直接进入一个页面

b.点击新建,和上面的步骤一样,浏览目录,选择JDK中的bin目录,或者变量值直接

填%JAVA_HOME%\bin

现在已经完成了环境变量的配置

3.检查电脑里面有没有成功安装好JDK,windows + R键,输入cmd,输入java -version

  1. 成功就已经完成了,如果出现了其他的提示,检查一下命令有没有填错,如果没有提示其他的,请耐性重新配置一次环境变量

第三步:下载Android开发软件Android Studio

  1. 搜索Android studio官网 下载 Android Studio & App Tools - Android Developers (google.cn)

a.点击下载

b.点击绿色的下载软件

c.下载完之后,打开进入安装程序

d.选择你自己喜欢的路径

e.一直往下走就可以了

  1. 进去之后回让安装SKD跟着系统安装就可以安装成功了

第四步:创建一个新的项目

  1. 点击File --> new Project

  1. 点击Next就可以了

这个教程到这里已经结束了,如果有不懂的可以找我问。或者开发中有什么问题也可以问,能解决的尽量帮你们回答。

Guess you like

Origin blog.csdn.net/m0_62278064/article/details/129580074