How to use idea for Android development

sequence

If it wasn't for handing in homework, I really didn't want to do this thing. I had a headache all afternoon, and I still haven't finished the thought report. I also found a lot of configurations on the Internet. Maybe I am too good at it. Anyway, my computer just says it doesn’t work, so I will write an article by myself.
If you don't want to read nonsense, you can directly click on the directory to jump.

prerequisite

Android development itself is a branch of Java development. We need to ensure that the computer has installed JDK and related configurations. If you are not sure, you can turn to –> JDK 8 installation and solve Java environment configuration problems - 'javac' is not an internal or external command, nor is it an operable program or batch file

Android SDK

Android SDK is an Android software development kit, a toolkit used in the overall development of Android, providing library files and other tools used in development.

The main event - installation and configuration tutorial

first boot

Let’s click File–>new project–>Android
insert image description here
insert image description hereinsert image description here
here. After confirming that it is correct, click Finish to start the download and enter the following mode:
insert image description here
Huh~ It’s done
insert image description here
insert image description here

create project

If you don't dislike it, let's take a look at the picture. I have a headache and don't want to type and typesetting.
insert image description here
Don’t the font green and the template green match well hahahahahahahahaha
insert image description here
, the project has been created
insert image description here

create avd

AVD (android virtual device): mobile phone emulator
insert image description here
insert image description here
I didn't find a size that exactly matches my mobile phone, so you can see for yourself.
insert image description here
insert image description here
insert image description here
There is no difference between the two pictures above.
insert image description here
This is optional, the following is a continuation of the previous picture.
insert image description here
It’s over, I seem to have missed a picture, anyway, it’s the next step, the next step is here
insert image description here
, and after closing, the status bar will become like this
insert image description here

Execute the HelloWorld program

Let's run it next! ! ! !
Ahhhhhhhhhhhh the time to freeze people's hearts has come wow Q—Q!
insert image description here
However, it reported an error: Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager. Do
you still remember that you were asked to modify the sdk download and installation path just now, go find me d8.bat and The d8.jar in the lib file is changed to dx, refer to: (Android) Repair Build Tools revision 32.0.0 is corrupted and
start loading crazily after solving it...
insert image description here
See the green and green in the picture below The icon is gone, click it!
insert image description here
Hahahaha, I finally came out, my head hurts, I have to go to bed. Finally got it done, sleepy report!
insert image description here

Guess you like

Origin blog.csdn.net/weixin_51229662/article/details/123806212