Android Studio user guide

In addition to the Android Developer Tools (ADT) plug-in for Eclipse / Android SDK, you can also use Android Studio (a new Android development environment based on IntelliJ IDEA) for developing and porting apps using Nokia X services SDK.

Installing and configuring Android Studio

Download and install the latest version of Android Studio from the Android Studio web page. Note that Android Studio requires the latest version of Java Development Kit (JDK) to function (JRE alone is not sufficient). Make sure that the bit version of the bundle matches the JDK, that is, both need to be either 32-bit or 64-bit.

Note: Nokia X services SDK is tested on Android Studio v0.4.6 (early access preview).

Installing the required tools and packages

  1. Open Android Studio. The Android Studio welcome page appears.

    Figure 1. Android Studio welcome page

    Figure 1. Android Studio welcome page

  2. In the Android Studio welcome page, create a new project or open an existing project using the default settings. This launches the Project view for your project in Android Studio.

    Note: The welcome page does not always appear. In that case, click the File menu to create or open a project.

  3. From the Tools menu, select Android > SDK Manager. The Android SDK Manager dialog appears.

  4. From the Android SDK Manager, ensure that the following Android SDK and tools are installed:

    • For Nokia X2 install the packages for Android 4.3 API 18:
      • Android API version 4.3 API 18
        • SDK Platform
        • ARM EABI v7a System Image (emulator prerequisite for ARM system images)
        • Intel x86 Atom System Image (emulator prerequisite for x86 system images)
    • For Nokia X/X+/XL install the packages for Android 4.1.2 API 16:
      • Android API version 4.1.2 API 16
        • SDK Platform
        • ARM EABI v7a System Image (emulator prerequisite for ARM system images)
        • Intel x86 Atom System Image (emulator prerequisite for x86 system images)
    • Tools
      • Android SDK Tools
      • Android SDK Platform-tools
      • Android SDK Build-tools 18.1.1
    • Extras
      • Intel x86 Emulator Accelerator (emulator prerequisite for x86 system images)
  5. Close Android SDK Manager and Android Studio to install the Nokia X services SDK.

  6. See the Install Nokia X specific packages section on Environment setup page for instructions on how to install the SDK add-ons.

    To check whether the installation was successful, open the Android SDK Manager as shown below and ensure that the following packages are installed:

    Figure 2. Launching Android SDK Manager

    Figure 2. Launching Android SDK Manager

    • For Nokia X2:
      • Android 4.3 (API 18)
        • Nokia X software platform 2.0
    • For Nokia X/X+/XL:
      • Android 4.1.2 (API 16)
        • Nokia X software platform 1.1
    • Extras
      • Nokia X Device Definitions
      • Nokia X services
      • Nokia X USB Driver
    Figure 3. Nokia X specific packages are now installed

    Figure 3. Nokia X specific packages are now installed

Configuring Android Studio to build using Nokia X services SDK

  1. Open Android Studio.

  2. Select Configure > Project Defaults > Project Structure.

    -OR-

    If your project is already open, from the File menu, select Project Structure. For default project settings, select File > Other Settings > Default Project Structure. The Project Structure dialog appears.

    Figure 4. Project Structure dialog

    Figure 4. Project Structure dialog

  3. Under Platform Settings, select SDKs and click Add New SDK (+ symbol) > Android SDK.

    Figure 5. Adding new SDK

    Figure 5. Adding new SDK

    The Select Home Directory for Android SDK dialog appears.

    Figure 6. Selecting Home Directory for Android SDK

    Figure 6. Selecting Home Directory for Android SDK

  4. Select the path in which Nokia X services SDK is installed as shown above and click OK. The default path is <androidstudio-install-path>\sdk. The Create New Android SDK dialog appears.

  5. Under Build Target, for Nokia X2, select Nokia X software platform 2.0 (4.3) and for Nokia X/X+/XL, select Nokia X software platform 1.1 (4.1.2). Once you are done click OK.

    Figure 7. Selecting build target as Nokia X software platform 2.0

    Figure 7. Selecting build target as Nokia X software platform 2.0

    Figure 8. Selecting build target as Nokia X software platform 1.1

    Figure 8. Selecting build target as Nokia X software platform 1.1

    The selected build target is added to the SDKs list. Now your projects are ready to build using Nokia X software platform.

    Figure 9. Nokia X software platform 1.1 added

    Figure 9. Nokia X software platform 1.1 added

    Figure 10. Nokia X software platform 2.0 added

    Figure 10. Nokia X software platform 2.0 added

  6. Click OK to complete the configuration.


Last updated 15 October 2014

Back to top

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×