Book Image

PhoneGap 4 Mobile Application Development Cookbook

Book Image

PhoneGap 4 Mobile Application Development Cookbook

Overview of this book

Table of Contents (19 chapters)
PhoneGap 4 Mobile Application Development Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Using Android Studio to develop Android Cordova applications


Android Studio is the official IDE for developing Android applications, based on IntelliJ IDEA. It provides an easier workflow to develop Android applications compared to using Eclipse.

Getting ready

Opening an Android Cordova application is very simple:

  1. Download Android Studio from http://developer.android.com/sdk/index.html, as shown in this screenshot:

  2. Launch Android Studio.

  3. Select Import project (Eclipse ADT, Gradle, etc.), as shown in the following screenshot:

  4. For the Gradle Sync question, you can simply answer Yes.

  5. Select the location where the android platform is stored (phonegap-cookbook/chapter12/hello/platforms/android).

  6. Your application is ready and can be run directly from Android Studio.

    Note

    For more information about building using Android Studio, visit http://developer.android.com/tools/building/building-studio.html.