Suddenly I decided to make an Android application and tried it, but I stumbled, so I will keep a record of it. The language is "Java". Since my smartphone is usually Android, I will use the actual device in the test.
In order to develop an Android application, you first need to install "Android Studio" provided by Google. Please download from the following site. http://developer.android.com/sdk/index.html
When you start it, you will be asked if you want to use the previous version, "Import Studio settings from:", so select "Do not import settings".
When "Welcome Android Studio" appears, select "Next"
Select "Install Type". I chose "Standard" because it was my first time.
Select "UI Theme". (You can choose either one)
In "Verify Settings", check the contents and select "Finish".
When all is completed, the top screen is displayed.
Select "Start a new Android Studio project" on the top screen.
Select "Empty Activity" in "Choose your project".
Decide the name etc. in "Configure your project". Name-> Decide on a name for the project and enter it. Package name-> This time it's a test, so it's as it is Save location-> Save project location Language-> Select a development language. This time, select "Java". Minimum SDK-> Select "API 16: Android 4.1 (Jelly Bean)" this time.
First, do some operations on your Android device.
Open [About device] in the settings and tap [Build number] 7 times.
Go back to the settings and select [Developer Options].
Turn it "ON".
Turn on USB Debugging.
Connect the actual machine and the personal computer with a cable.
When you're done, go back to Android Studio and click the green triangle to run it.
Success if "Hello World!" Is displayed on the screen of the actual machine!
When I first executed it, I got the error "Error running'app': No target device found.", So I will write down the corrective action that I actually took.
In my case, there was a problem with the cable I was using. There was a cable that had only the function to charge the smartphone, and because I was using it, it was not recognized as a "media device" and an error occurred. Also be aware of the cables you use when doing this.
This time it ends. I stumbled upon Error running'app': No target device found. No way, the cause was the cable. .. ..
Recommended Posts