Thursday, May 28, 2015

Configure Cordova/Phonegap in IntelliJ IDEA Properly

This article for those who try and didn't success at the first time. If you are a beginner and came first time. just follow this steps .

I wasted 2 days. try to configure Cordova/Phonegap to Intellij IDEA and there are simple steps you have to follow. if you have problems in config. this article may help you.

You need,

  • Intellij IDEA ( This actually works on PHPStorm, WebStorm or Android Studio. if you have one of those you will be fine )
  • Android SDK
  • Java JDK

1. Install Java JDK.

2. Install Android SDK.https://developer.android.com/sdk/installing/index.html ( standalone SDK is the one )

3. Install the IDE and Set Up the required plugins ( i'm not gonna cover this, there is a pretty good article out there posted by official JetBrains Guys Link: https://confluence.jetbrains.com/display/IntelliJIDEA/PhoneGap%2C+Cordova+and+Ionic

After you install the Android SDK run SDK Manager and download your targeted api.
Example: If you build an App that's compatible for Android 5.1  download that. i recommend to download the latest api

3 Setup the Environment Variables

Open the CMD type below commands individually, if you receive 'command is not recognized' error you have to setup the ENV variables.

Google how to setup env for all of those commands. 

after you done restart your IDE, you are good to go.

if you see an error. just hit the run button and in the console it gives you the error description.




No comments:

Post a Comment