Enter W2A Welcome to Android as the application name and javajeff. Click Next to select your target devices. Android Studio lets you select form factors , or categories of target devices, for every app you create.
I kept the default setting. Click Next , and you will be given the opportunity to choose a template for your app's main activity. For now we'll stick with Empty Activity. Select this template if necessary and click Next.
Enter W2A as the activity name and main as the layout name, and click Next to complete this step. The first time you use Android Studio, you'll discover that it has to download some files related to its constraint layout , which is used to build responsive user interfaces:.
Android Studio enables Finish after downloading the constraint layout files. Click this button and Android Studio takes you to the main window. The main window is divided into a menu bar and several other areas, which are identified in Figures 25 and Note that Figures 25 and 26 are courtesy of Google.
When you enter the main window see Figure 24 , you observe the Project window showing only app and Gradle Scripts. You'll have to expand the app branch of the project tree to observe more details. The Project window is organized into a tree whose main branches are app and Gradle Scripts. The app branch is further organized into manifests , java , generatedJava , and res subbranches:.
The Gradle Scripts branch identifies various. You've installed and configured Android Studio and created a project for your first Android Studio mobile app; now you're ready to build your Android application. In Android Studio, this means populating your new project with Java source code and resource files. Turn to Part 2 when you're ready to code your first Android animated mobile app.
Here are the latest Insider stories. More Insider Sign Out. Sign In Register. Sign Out Sign In Register. Fix "Error running android: Gradle project sync failed. Please fix your project and try again" in Android Studio. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. Most popular in Android.
Most visited in How To. Configure your build. Optimize your build speed. Debug your app. Test your app. Profile your app. Android Studio profilers. Profile CPU activity.
Benchmark your app. Measure performance. Publish your app. Command line tools. Android Developers.
0コメント