How to install android on IntellijIDEA IDE

Salam Aliykom,,
Many developers are turning to android these days and some of them have some issues during the installation process ,So today i'm going to explain how to install android SDK on windows to start programming on the android platform and tell you the solutions to the most critical problems that faces new developers during installation.

I'v explained before how to install the android SDK on Eclipse IDE here.

Now we come to the IntellijIDEA

First you need to download the following :
  • The latest java JDK from here .
  • The latest Android SDK from here. 
  • The lastest Version of IntellijIDEA IDE from here. 
  • The activation key Generator for the IDE from here
After downloading the above install the JDK by clicking on it it's an (.exe) file it will install itself.

Then we come to the Android SDK which is and (.exe) file too. The Downloaded SDK isn't the complete SDK environment ,It includes only the core SDK tools that enables us to download the rest of SDK.

Now run the SDK (.exe) that starts the installer ,The installer first checks some requirements to be available like the latest JDK and here some may have some issues that the SDK can't find the JDK though you just installed it , is the solution (If you didn't face this problem move to the next step)

JDK not found problem solution

      • First try the easy way click back then click Next again (sometimes this solves the problem)
      • If the back didn't work we do the following : 
      • Close the SDK installer (we will come back to it later).
      • Open desktop and right click on my computer >> Properties >> Advanced system settings (from the upper left).
      • A window will open choose Environment Variables from the lower right.
      • Another window will open click New
      • Enter variable name as JAVA_HOME 
      • Set variable home to the JDK folder that you will find in C >> Program files >> Java >>JDK copy the folder path and paste it to the variable home then click  ok.
Now you got the JDK and the SDK installed , Now to the IntellijIDEA 
    • open the .exe downloaded file.
    • Go with the installer > Next > Install>Next > Agree..etc ...Finish.

Now the IntellijIDEA is installed but it needs to be activated ,And this is what we need the Key Generator  for.
    • open the downloaded key Generator (.jar) file.
    • Enter your name and click generate.
    • open IntellijIDEA and it will ask for license.
    • choose to Enter license data.
    • Copy & paste the name and Generated key to the activation form in IntellijIDEA and click Ok.
    • And then the same Next > Next ...etc hustle.
Now the IntellijIDEA is installed and activated and ready to run.

Now the final phase is to tell the IntellijIDEA that you need to run android on it and where's the SDK and JDK is installed.
    • click on Create New project 
    • A new project window will appear
    • from the left panel go down and from the Android category choose Application module.
    • and then enter the Project name.
    • and at Project SDK click New
    • A window will appear asking for the JDK location.
    • Go to C > program files > java > JDK and click  OK.
    • A new window will appear asking for the  SDK  location.
    • Go to C > program files > Android > SDK and click  OK.
    • A new window will appear in the Build Target choose the version of android you want to develop your application for such as Android 4.4.2 (kitkat) and click OK.
    • Then click Next  and  finish.

Now you got the Android Running with IntellijIDEA and you are ready to sail in android world , for any questions don't hesitate to contact me.

find it useful ? share it with your friends.
Share on Google Plus

About Ahmed Mabrook

Software engineer. Mobile applications developer,books worm and i write every once in a while.
    Blogger Comment
    Facebook Comment