Android Studio Setup - sadadsadqwdwqdwqdwqdqwdqwdqdwqdwqdsdcsacsacsa sasadsadasdsad asdasd asd sadsa PDF

Title Android Studio Setup - sadadsadqwdwqdwqdwqdqwdqwdqdwqdwqdsdcsacsacsa sasadsadasdsad asdasd asd sadsa
Author eric kwon
Course Programming Methods
Institution British Columbia Institute of Technology
Pages 8
File Size 567.2 KB
File Type PDF
Total Downloads 95
Total Views 156

Summary

sadadsadqwdwqdwqdwqdqwdqwdqdwqdwqdsdcsacsacsa sasadsadasdsad asdasd asd sadsa dsa dsa d sdas dsad sad asd a...


Description

1. Install Android Studio if you have not already: developer.android.com/studio . Android Studio 2020.3.1 was latest when updating this doc. If you already have Android Studio, please make sure it’s updated to 2020.3.1 a. Go through the setup process and download the latest SDK if prompted (It will likely automatically download it for you). Android 12 (API 31) was latest when making this doc. 2. Start android studio and click “Create New Project”. If you are prompted with ‘SDK not found’ then try reinstalling Android studio.

3. Select the project template “Empty Activity” under the Phone and Tablet tab and hit next

4. On the next page configure your project with the settings below and hit Finish Name:

FirstAndroidApp

Package name:

com.bcit.firstandroidapp

Save location:

Somewhere all your projects for this course will be saved. (ex. /bcit/COMP3717/Projects/FirstAndroidApp) * The last directory in the save path should be the name of the project * * Make sure not to have any spaces in the save path *

Language:

Java

Minimum SDK: API 28: Android 9.0 (Pie)

5. Android Studio will now load up your new project and you should see come code displaying which is your MainActivity.java file. If a “What’s New” window is also displaying, you can close that for now.

6. Let’s run your app in the android emulator. Click Run>Run App from the menu system or click the green arrow icon on the top toolbar. Run ‘app’ from top toolbar

Run ‘app’ from menu system (mac menu system should be similar)

7. At this point you may be presented with a few different things a. If you got “Error running ‘app’: No target device found” go to step 8 b. If you got a prompt to select a deployment target with the option to create a new virtual device, click “Create a New Virtual Device” and go to step 9 c. In the console if you got “Unknown host ‘dl.google.com’ You made need to adjust your proxy settings” it’s likely you have a poor network connection, fix this and try again. d. If nothing seems to happen or you got “Could not start AVD”, likely you need to turn on virtualization technology in your BIOS settings (PC only). Most common ways to get here is to press F2 when your computer is booting up, once in the bios settings go to advanced and then virtualization should be somewhere around there. See screen shot below of mine.

8. To create a new virtual device, go to the AVD Manager (Android Virtual Device) on the top right. It’s also under Tools in the menu system.

9. Here we choose which virtual device to use. You can choose whatever one you want, but I would suggest one of the newer ones, such as the Pixel 3, then hit Next.

10. Next you need to download an OS version to be used on your virtual device. Go ahead and download the latest available which was Android 11 (API 30) when making this doc. Make sure you have enough space on your computer, it will be about 1GB and it also may take some time to download

11. Once done, go ahead and verify your configuration. I would recommend just keeping the default settings here but there are small adjustments you can make such as the name of your virtual device, it’s orientation, and more in the advanced settings. You can always adjust these later in the term.

12. You should see your virtual device in the AVD Manager now, you can create more virtual devices with different configurations as well and they will show up here. Here is more info if interested https://developer.android.com/studio/run/managing-avds Go ahead and close the AVD Manager and Run your app again. This time it should deploy your app to the Android Studio emulator simulating the virtual device you created. Your app should open automatically. Congrats you are ready for the first day of class. If the emulator is running slow see some options below.

If booting up your emulator is slow go to the AVD Manager and choose an older device to emulate. Try the Nexus 4 for example. The lower screen resolution should help on lower-end machines.

SEE YOU IN CLASS...


Similar Free PDFs