[JAVA] Until Android Studio beginners display "Hello World" on HUAWEI nova 2

Make a note of the various problems that occurred between the time you downloaded Android Studio and the time you displayed Hello World on your phone, and how they were resolved.

Environment when you started doing

Mac OS 10.9 (I stumbled because of this, I actually need 10.10 or higher) HUAWEI nova2 Android version 7.0 JDK installed

Reference site

Android Studio super introduction I set it based on this. http://www.atmarkit.co.jp/ait/articles/1709/04/news015.html

Record the contents set below

Version of the app to create

OS 4.0

template

Empty Activity

Creating a virtual device

From the button called AVD manager

emulator

Virtual device OS: Android API 28 (I chose to keep it up to date, but a problem occurred later) Model: Nexus 5X API 28

Problems that stumbled this time

The problem that the emulator cannot be used without installing HAXM

--Because HAXM can only be installed on Mac OS 10.10 or later, install MAC OS High Sierra.

Problems that cannot be built

--If you install this from the SDK manager button, it will be solved → Android 7.0 (I tried to match it with the OS of HUAWEI nova2. It may happen that it can be built)

Problem that cannot be RUN & problem that the application is not reflected in the emulator

--When you press the button called Sync Project with Gradle files, you can now press the RUN button. Now that you can select the execution environment, select the emulator you have created and execute it.

Hello World is displayed! !! But there is still a problem. .. ..

The problem that the memory of MAC BOOK Air is 4G and the memory of virtual device is also 4G

PC is hot and seems to break

--Connect with HUAWEI nova2 --Various changes to the settings on the terminal side (see the above site) --Just connect with a USB cord --The app called HiSuite was unnecessary

--The HP of Android Studio says that you should write android: debuggable = "true" in the file AndroidManifest.xml as a setting on the PC side, but you could execute it without writing it.

Impressions

So far, I was able to display the app on my mobile device for a whole day and a half. I realized that there are a lot of things that I have to be careful about, such as slight differences in versions. Finally, I can start working on the original purpose of creating an app. I will do my best because it is the actual production from here.

Recommended Posts

Until Android Studio beginners display "Hello World" on HUAWEI nova 2
[Introduction] Display Android Studio Hello World on the emulator
Hello World on WebAssembly
Java beginners read Hello World
[Android studio (version 4.0)] Until project creation
Until "Hello World" with Spring Boot
Hello World on AWS Lambda + Java
Android OS (7.1.2) build and Hello World
[For beginners] Introducing the procedure to Hello, World in C/C ++ language using Visual Studio Code on Ubuntu
Sample to display (head-up) notifications on Android
[Practice! ] Display Hello World in Spring Boot
Hello World on Mac VS Code Java