官术网_书友最值得收藏!

Android Studio

The next tool to be installed is Android Studio. Android Studio is the official IDE for Android application development, based on IntelliJ IDEA. Eclipse used to be the IDE for Android Application development before Android Studio was introduced. Android Studio was in early access preview stage, starting with version 0.1 in May 2013, and then entered beta stage starting with version 0.8, which was released in June 2014. The first stable build was released in December 2014, starting with version 1.0.

Download and install Android Studio from the following link:

https://developer.android.com/sdk/index.html

  1. Download Android Studio and run the installer:
  2. Click Next till the following window appears:

    This window shows us the options for the tools to be installed. It is suggested you check all of them to install Android SDK, Android Virtual Device, and Intel@HAXM, which is used for hardware acceleration and necessary to run x86-based emulators with Android Studio.

  3. Agree to the License Agreement and proceed with the installation:
  4. Choose the installation location for Android Studio and the Android SDK. If you don't have any specific choices, leave them to the default values. Please keep a note of the location of your Android SDK to add it to your system environment variables, so that we can access tools such as adb, sqlite3 client, and so on from anywhere on the command prompt:
  5. Allocate the RAM based on your available system memory; however, a minimum of 2 GB is recommended:
  6. The following step allows us to choose the name for Android Studio in the start menu. Again, you can leave it to the default value if you don't have any specific choice:
  7. Continue the installation by clicking Next till the following screen appears. This finishes our Android Studio installation:
  8. When you click Finish in the preceding window, the following screen will be shown. If you have installed an older version of Android Studio, choose its location to import your previous settings. If this is a fresh installation on this machine, choose I do not have a previous version of Studio or I do not want to import my settings:
  9. Clicking the OK button will start Android Studio, as shown here:
  10. Once it is loaded, we will be greeted with a window, where we need to choose the UI theme. Select one of the themes and click Next.
  11. Clicking Next in the previous window will download the latest SDK components and the emulator, as shown in the following screenshot:
  12. Finally, click Finish and you should be greeted with the following window. This completes our installation:
  13. To create a new sample application, click Start a new Android Studio project:
  14. Choose a name for your app under Application name. Let's name it HelloWorld. Also choose a sample company domain name. Let's name it test.com. Leave the other options to their defaults and click Next:
  15. The following screen shows the Minimum SDK version for our app. We choose to make it API Level 15, as it supports a higher number of devices:
  16. Select a Blank Activity, as shown here, and click Next:
  17. You can choose a name for your activity if you wish. We will leave the options to their defaults:
  18. Finally, click Finish to complete the setup. It will take some time to initialize the emulator and build our first Hello World app:

Wait for all initialization to finish when you see the previous screen. In future chapters, we will see how this app is compiled and run in an emulator.

主站蜘蛛池模板: 鄂尔多斯市| 基隆市| 普宁市| 焦作市| 凭祥市| 四川省| 泽库县| 富平县| 鄯善县| 宁夏| 松原市| 冕宁县| 南木林县| 蒙自县| 古浪县| 封开县| 惠安县| 本溪市| 刚察县| 聊城市| 宜兴市| 元江| 桂林市| 新干县| 尼木县| 林州市| 特克斯县| 隆子县| 开阳县| 沽源县| 遂平县| 古交市| 南漳县| 于田县| 沁水县| 临桂县| 白朗县| 莫力| 临江市| 徐州市| 繁昌县|