page.title=Creating an Android Project page.tags=project setup helpoutsWidget=true trainingnavtop=true next.title=Running Your App next.link=running-app.html @jd:body
This lesson shows you how to create a new Android project with Android Studio and describes some of the files in the project.
Android Studio fills in the package name and project location for you, but you can edit these if you'd like.
The Minimum Required SDK is the earliest version of Android that your app supports, which is indicated by the API level. To support as many devices as possible, you should set this to the lowest version available that allows your app to provide its core feature set. If any feature of your app is possible only on newer versions of Android and it's not critical to the core feature set, enable that feature only when running on the versions that support it (see Supporting Different Platform Versions).
After some processing, Android Studio opens and displays a "Hello World" app with default files. You will add functionality to some of these files in the following lessons.
Now take a moment to review the most important files. First, be sure that the Project window is open (select View > Tool Windows > Project) and the Android view is selected from the drop-down list at the top. You can then see the following files:
build.gradle
file for each module of your project, as well as a build.gradle
file for the entire
project. Usually, you're only interested in the build.gradle
file for the module.
in this case the app
or application module. For more information about this file,
see Building Your Project with Gradle.To run the app, continue to the next lesson.