[2023 latest] Android Studio + JDK11 installation and configuration one-stop

[2023 latest] Android Studio + JDK11 installation and configuration one-stop

1 JDK11

In fact, regarding the download and installation of JDK, the author has released 8 and 17 before [Original link: https://dingjiaxiong.blog.csdn.net/article/details/128883508 ], here is to cooperate with the installation of Android Studio One dragon, decided to do it again. [The version selected this time is JDK11]

1.1 JDK11 download

Oracle official website: https://www.oracle.com/

insert image description here

insert image description here

insert image description here

insert image description here

slide down

insert image description here

That's it, today is Sunday, February 26, 2023, and the latest version of JDK11 is 11.0.18

insert image description here

insert image description here

Log in to your Oracle account

insert image description here

preserved

insert image description here

OK, the download is complete.

1.2 JDK11 installation

Double-click to run the installer directly

insert image description here

Next step

insert image description here

The installation path is still the same as the author's previous style

insert image description here

insert image description here

Next step

insert image description here

insert image description here

OK, the installation is complete

1.3 Configure environment variables

In fact, you only need to change JAVA_HOME. If you don’t have one, create a new one.

insert image description here

insert image description here

insert image description here

After modifying things, save and verify

insert image description here

No problem, JDK11 installation is complete.

2 Android Studio

Android Studio is the official IDE tool provided by Google for Android, referred to as AS.

Android Studio is an Android development environment based on IntelliJ IDEA. In fact, IntelliJ IDEA has always been a very good IDE tool, just because IntelliJ IDEA is a commercial IDE tool (although there is also a free community exchange version, but the functions are relatively limited), thus affecting its wide application.

2.1 Download Android Studio

Official website download address: https://developer.android.google.cn/studio

insert image description here

download it directly

insert image description here

insert image description here

Today is February 26, 2023, and the latest version on the Android Studio official website is 2022.1.1.20

insert image description here

insert image description here

Wait for the download to complete

insert image description here

OK, the download is complete

2.2 Android Studio installation

Double-click to run the installer directly

insert image description here

insert image description here

next

insert image description here

Keep, the next step by default, [the tick is to install the Android emulator]

insert image description here

Modify the installation location according to actual needs, next

insert image description here

install!!

insert image description here

wait for completion

insert image description here

OK,next

insert image description here

Directly end the startup

insert image description here

Do not import any configuration, OK

insert image description here

Cool, changed the picture again

insert image description here

Do not send

insert image description here

Cancel

insert image description here

next

insert image description here

Custom installation, next

insert image description here

In this step, it uses our installation path, just keep the default, next

insert image description here

Personal preferences, choose a theme, next

insert image description here

In fact, you can do whatever you want here, and you can keep the default. The author prefers to use the real machine directly, next【Pay attention to modify the storage location】

insert image description here

Just OK

insert image description here

Here is to set the memory size for the Android emulator, the default is 2G, anyway, it is recommended not to exceed half of the computer memory, next [I am still used to using a real machine]

insert image description here

next

insert image description here

Accept both permissions, finish

insert image description here

just wait for it to finish

insert image description here

OK, stop here, just end

insert image description here

The installation is probably complete now

2.3 Hello World [Android version]

New Project

insert image description here

One thing to note here is that the Android Studio project is equivalent to the Eclipse workspace, and the Android Studio module Module is equivalent to the Eclipse project.

[So] The Android Studio project is equivalent to a large workspace. A workspace can contain multiple modules, and each module corresponds to an Android project.

[Big mouth] Android Studio projects can contain multiple Android projects (modules)

insert image description here

Select this empty Activity, next

insert image description here

finish

insert image description here

Wait for the download to complete

insert image description here

finish

insert image description here

Shallowly wait for it to load

insert image description here

In fact, we can see in the process that the Gradle version it uses by default is 7.5, which is very new

insert image description here

Good guy, I reported an error, fix it

It is obvious that the download timed out, so this problem is not surprising

insert image description here

Try to synchronize again [this thing is also related to that, if you have a global one, it will be very fast, if you don’t have it, try a few more times]

insert image description here

Persevere, if you pass this time, there will be no next time

If you get stuck on a certain dependency, stop refreshing

insert image description here

In fact, this thing seems complicated, but it is essentially a project created by the Gradle build tool we have learned.

While it is turning, simply modify the configuration of the IDE

insert image description here

modify font

insert image description here

case insensitive

insert image description here

uncommented italics

insert image description here

mouse wheel change font size

Sometimes if it is stuck, I also recommend restarting the IDE

insert image description here

Don't be discouraged by this little difficulty, it will be difficult later

insert image description here

We can change this to the JDK 11 we installed ourselves

insert image description here

insert image description here

Help, there are too many things to download in the new version, it didn’t feel that long before

insert image description here

what is this i don't know

insert image description here

Still got that, much sooner

Here I will not create a virtual device, and friends who need it can refer to my previous article https://dingjiaxiong.blog.csdn.net/article/details/125583782

insert image description here

Connect directly to the real device

insert image description here

Automatically detected here

Briefly explain the author's spare machine specially used for Android development.

insert image description here

developer options status

insert image description here

Android version

insert image description here

OK, run it directly

insert image description here

insert image description here

insert image description here

OK, that's it.

Guess you like

Origin blog.csdn.net/weixin_44226181/article/details/129225234