Step 1: Hello World

Setting Up Your Workspace

  1. Open up Android Studio and select Check out project from Version Control > GitHub.
  2. You'll need to login with your credentials you created in the Setup instructions.
  3. Enter https://github.com/android101-sup/Sup.git as the Git Repository URL.
  4. Use the default Gradle distribution.
  5. Android Studio will open up and warn you about Unconfigured Roots. You can ignore this message.

Note: If this doesn't work, try importing manually.

  1. Open up your Terminal and type in the following:
    git clone https://github.com/android101-sup/Sup.git
  2. Open up Android Studio and select Import Project (Eclipse, ADT, Gradle, etc.).
  3. Navigate to the directory in which you cloned the git repository in earlier.
  4. Expand the directory titled "Sup", select build.gradle, and select OK.
  5. Android Studio will open up and warn you about Unconfigured Roots. You can ignore this message.

Android Studio

In Android Studio, we have your Project File tree on the left, and your code workspace on the right. At the top, we have a toolbar, and highlighted in the screenshot below are the ones we'll be interacting with the most.

Run Your App

  1. Click the green arrow in your toolbar.
  2. Select the virtual device you created earlier.
  3. If an pop up shows up asking about an Instant Run, you can just Proceed without Instant Run.
  4. Your emulator should start up and show your app running.

Note: if you are using your own device, you may need to enable USB debugging in your Developer Tools.

Your app should look like this:

Falling Behind?

Either through the Git Shell (Windows) or in your Terminal (all other OS's), in your project directory, enter:

git checkout step2