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

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.

主站蜘蛛池模板: 正定县| 井陉县| 正宁县| 静安区| 全椒县| 廊坊市| 成武县| 城市| 瑞昌市| 连云港市| 临洮县| 鹿泉市| 南康市| 巴林右旗| 新邵县| 宣化县| 潼南县| 江口县| 卫辉市| 霍邱县| 武鸣县| 叙永县| 浦北县| 嫩江县| 百色市| 蒲江县| 普安县| 民权县| 股票| 平远县| 牙克石市| 新巴尔虎左旗| 子洲县| 鹤庆县| 南安市| 姚安县| 临西县| 闵行区| 全椒县| 新乡县| 噶尔县|