I would like to build a project in Android Studio and see Hello World as it appears on the emulator. I will try it as an operation check after installing Android Studio.
The installation method is here Click here for Japanese localization (https://qiita.com/kepin/items/213562dafea8c96e4fdf) Please refer to.
First, create a project.
First, start Android Studio. When a window like the one below opens, press Start New Android Studio Project.
Android Studio comes with several templates, including maps. I chose this one this time because the empty activity is the simplest and easiest to implement. Click Next.
Enter each of the following. ――Name: This time, I chose Hello World. The package name is automatically entered at the same time as you enter it. --Package name: This time, the automatically entered one will be used as it is. --Language: I chose Java, which has many reference articles on the net. --Minimum SDK: It seems that the specifications are such that apps cannot be installed on OSs older than the minimum SDK. First of all, select the latest API 29 (Android 10.0). If you choose API 28 or lower, it will be easier to understand if you try after confirming the operation.
A window like the one below has opened.
The project creation is complete.
Open Tools / AVD Manager.
Open Create Virtual Device.
Decide on virtual hardware. I searched online and chose the Pixel 3a, which seemed to be popular. There is no problem with other things.
Download and select the system image. I'm confused because there are various things, but ...
--Since API29 was selected with the minimum SDK, select from API29 or higher (there are only 29). ――It seems that many 64-bit terminals are currently in circulation, so I will select x86_64. It should work fine on x86 as well. ――First of all, select Google Play. For this purpose, APIs are fine.
For details of the difference, the article here was easy to understand. Then, click Download in the target release name column. At the same time, the download will start.
Wait for a while until it is downloaded.
Click Finish.
You will be returned to this screen. Select the downloaded image and proceed to the next.
Enter the AVD name. It is troublesome to confuse when making multiple AVDs, so do not do anything extra and proceed with the default.
AVD creation is complete. Close the window.
Click the triangle mark in the red frame to start the build. At this time, check that the AVD name created above is displayed next to it.
When the build starts, the red frame shows that the build is in progress. Wait until the display disappears. The first build is quite long.
When the Android emulator starts in a separate window and Hello World is displayed, the operation check is complete.
I have confirmed that Hello World is displayed on the emulator.
https://feel-log.net/android/api-level-target-version-min-version/
Recommended Posts