Android development with idea
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
here. After confirming that it is correct, click Finish to start the download and enter the following mode:
Huh~ It’s done
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.
Don’t the font green and the template green match well hahahahahahahahaha
, the project has been created
create avd
AVD (android virtual device): mobile phone emulator
I didn't find a size that exactly matches my mobile phone, so you can see for yourself.
There is no difference between the two pictures above.
This is optional, the following is a continuation of the previous picture.
It’s over, I seem to have missed a picture, anyway, it’s the next step, the next step is here
, and after closing, the status bar will become like this
Execute the HelloWorld program
Let's run it next! ! ! !
Ahhhhhhhhhhhh the time to freeze people's hearts has come wow Q—Q!
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...
See the green and green in the picture below The icon is gone, click it!
Hahahaha, I finally came out, my head hurts, I have to go to bed. Finally got it done, sleepy report!