Use Android Studio's built-in emulator to experience native Android

Now there are many domestic Android manufacturers, such as Xiaomi, vivo, Huawei, oppo, realme, Honor, etc., and they all have their own "magically modified" Android versions: MIUI, ZUI, EMUI, Magic UI... (I It’s a fruit fan, there are too many Android UIs that have been magically changed, and I can’t remember them~), after a long time, I’m curious: Doesn’t it smell good with the original Android~ Why do you have to go to Magical Changes~

After countless times of Baidu, and experienced countless xx emulators xx emulators xx emulators, I finally found the purest one - the Android Emulator built in Google's own son Android Studio~

---------------------------text---------------------- ----

1. Deploy the Android Studio environment

Zongsuo porridge juice, if you want to go to Google, you need to surf the Internet scientifically. But here, we don’t need to~ Google specially bought the google.cn domain name as Google’s latent point in China (of course you can’t use it to search), and the Google Android Developer Center naturally has a Chinese version: just replace com with cn . All the content in it is the same as the one on the external network, and no ladder is needed (I can’t say too much, if I say too much, I won’t give it a review)

Open the official Android Studio download link provided by the Google Android Developer Center  . Red is Windows, orange is Intel Mac, yellow is M-chip Mac, green is Linux, and purple is Google’s own computer operating system Chrome OS (Chrome OS is really cool to use, low-end version does not freeze at all, here are Its Chinese branch: FydeOS , no need to climb the wall~).

After downloading the file, double-click to run the installer, and click next~;

Hook up Android Virtual Device (this is the core of creating a native Android emulator), click Next;

The red arrow part is the installation location of Android Studio, which can be modified to other disks, and 3 G is a bit large;

 Click Install directly to install;

Wait for it to install for a while;

The installation is complete and click next;

 Check Start Android Studio and click Finish;

 Friends who don’t have ScienceNet, remember to choose Don’t Send, if you have one, you can do whatever you want. Click Next;

 It may jump out of this, click Cancel;

 click next;

Select Standard, then next;

This depends on personal appetite, I prefer the bright theme Light;

 Direct Finish to end;

Finish until it prompts the following information.

2. Build the simulator

A strong idea of ​​IDEA (JetBrains IDE to be precise) blows in the face, choose New Project;

Select Empty Activity and then next;

Choose this by yourself. If you don’t choose it, keep the default. Remember that the last Minimum SDK is set to API 21: Android 5.0. This is the minimum version limit of Android. Generally speaking, 5.0 is enough to meet our needs (this is not what we will simulate later. device's Android version). Remember not to adjust too high, there will be many compatibility issues. Click Finish;

 Wait for it to download the debugging package, and click Finish when the download is complete.

Check the private network, click to allow access;

 Another strong IDEA wind (JetBrains IDE wind!!!) Click the phone icon in the upper right corner;

 Click Create Device to create the simulator;

Select the emulator phone model, here we directly select the latest Pixel 5, click next;

Select the emulator Android version. It is recommended to choose Android 11(R) (32-bit), or Android 12(S) (64-bit). It seems that Android 13 has not been seen yet, and it may still be in Beta~ Click Download;

 Wait for it to download Yihuier Finish;

Just like the picture below, select the version you just downloaded and click next. Some Intel users may receive a prompt, the location is in the red circle, I can’t remember the specifics, anyway, just follow it. It's really impossible to find Du Niang. Fortunately, I am AMD~

 Keep all the defaults, and then Finish;

Click the triangle at the red arrow to start the simulator;

The native Android has finally started, and it gives me only one feeling: simplicity.

 The installation of the software requires the use of a tool adb. win+r to open cmd, enter adb -v to check whether adb is installed. This software is generally included with Android Studio, if you have not installed it, you can refer to this article: link . If you can’t download adb inside, you can replace it with this one that doesn’t require a ladder: link (I will publish an article about adb installation and driver later)

Enter adb devices, if the following interface pops up, it means the connection is normal.

 Go to the Internet to download the apk installation package of the Android application. Here I take Baidu as an example. Enter the absolute path of the adb install installation package to install the application. The result shown in the figure below indicates success

 Check the emulator, there is really an extra Baidu, and the function is normal~

 ps: With this emulator, I suddenly feel that I saved a Pixel 5 and earned more than 1k (what are you thinking)

Guess you like

Origin blog.csdn.net/raspi_fans/article/details/125241703