- Getting Started
- Prerequisites
- Install Cordova Plugin
- Import to Android Studio
- Run Project
- Conclusion
A Simple Guide to import existing Cordova Projects to Android Studio and Run
- Any Cordova Project
- Cordova CLI
- Android Studio
- Cordova Plugin
In Android Studio
- Choose File->Settings or (Ctrl+Alt+s)
- Navigate to Plugins Tab
- Choose Install JetBrains Plugins
- Search for Phonegap/Cordova Plugin
- Install the Plugin
- restart Android Studio
- Navigate to Cordova Project Folder
- Open Cordova CLI
Run this Command
$ cordova prepare android
It will Prepares the Cordova Project for Android
Run this Command
$ cordova build android
It will Builds the Cordova Project for Android. (If the Required Gradle is Not Available it will be downloaded Automatically)
- Open Android Studio
- Choose File -> New -> Import Project
- Navigate to The CordovaProject's Directory/platform
- Select the Folder Android and Press Ok
After that the Gradle build will begins and let it to be finish.
- Once the Gradle Build finished Click the RUN Icon or shift+F10 to Run the Project
##Note 🚫
😲 Yea hooo we did it 🙌 😃
- Official Documentation - by Cordova