Join David Gassner for an in-depth discussion in this video How to use the exercise files, part of Android Studio Essential Training.
- [Instructor] This course is accompanied by exercise files that you can use to follow along with the demonstrations on screen. I've copied the exercise files to my desktop, but you can place them anywhere on your hard disk. The exercise files are organized by chapter. Within some chapters you'll find subdirectories for each video, and within those you'll find directories that are designed as Android Studio Projects. You can tell something is an Android Studio Project on Windows by seeing the .idea folder or on both Mac and Windows by seeing a file with .iml extension.
On Mac, the .idea folder won't be visible, but it does exist on your system. In some other chapters, I've simply placed a file called nofiles.txt, and this contains just some information telling you that there aren't any pre-built exercise files for this particular chapter. In those chapters, I'll always be creating brand new projects that will automatically have all the settings that are needed for your particular version of Android Studio. Where I do provide a project, you can open it from the Welcome screen by selecting Open an Existing Android Studio Project.
If you copied your exercise files to the desktop, you can press Control D on Windows or Command D on Mac, and that'll jump to your desktop directory. Then drill down to the exercise files directory to the chapter and to the directory for this particular video. Then select the project which should be marked by the Android Studio icon, and click Okay to open the project. When you open these projects, if you see an IDE Error Occurred notification, I recommend clicking on it, and then clicking on Clear All, and that should clear that notification for subsequent opens of the project.
If you open these projects with even more recent versions of Android Studio, you might be prompted to update the Grato plugin or other project resources. I recommend always accepting these prompts to make sure you're working with the latest code from Google. And also, I'm delivering these projects pretty much cleaned up and so when they open you won't see any files or folders open. To get to any particular files, go to the Project window using the tab on the left, then drill down to the folder you're interested in.
For example, this is the main activity class for a very simple beginning Android app.
- Installing Android Studio on Mac and Windows
- Creating Android Studio projects
- Setting up the development environment, including HAXM and the new Android emulator
- Importing existing code into Android Studio projects
- Exploring the interface, including the editor and project windows
- Managing project builds and dependencies
- Creating new Java classes
- Refactoring code
- Using templates
- Using breakpoints and watch expressions
- Updating apps with Instant Run
- Using Git for version control
Skill Level Beginner
Q: This course was updated on 04/27/2017. What changed?
A: New videos were added that highlight the new features introduced in Android Studio 2.3. In addition, the following topic was updated: update apps with Instant Run.