CS 342: Mobile Application Development

Setting up Android Studio

Our first project this term will be a very simple Android project, to get you familiar with some basic app development tools (IDEs, platform SDKs, emulators, build systems, etc.) and concepts (the various forms of Model-View-Controller, etc.). The first step is to get your development environment set up on your own computer. You may use the CS labs, of course, but it's actually important to learn how to set tools up yourself--that's part of life as an app developer.

Get an empty project running

Get one of the official sample apps

Build and run a sample app

Suppose you have made a copy of the BorderlessButtons sample app. If you go to File→Import Project and select BorderlessButtons/build.gradle, the project will import. It's possible that you'll now be able to poke the bug button and build and run the project with no trouble. As you witnessed in class, however, that is not what happened on my Mac laptop. Here are my notes on how I succeeded in getting BorderlessButtons to work.

The problems getting the sample to build are a few version numbers hard-coded into the samples that are inconsistent with the tools as installed on my computer. Change those numbers, and all is well.

Those three changes did the job on my system. If you have additional problems, please post the problems (and the solutions, if you find them) on Piazza.

Resources