How To Setup Android Studio and Android SDK, NDK on Windows

,

Hello guys, this is Yuvraj Singh and today, In this post we’re going to Setup Android Studio and Android SDK, NDK on Windows. Nowdays, Eclipse IDE is deprecated for Android Development. So, one needs to install Android Studio in his/her PC to kickstart Android Development. When Eclipse was there then one could run it on a 3 GB RAM PC. But, if you are willing to install Android Studio on a Windows PC, you need minimum 4 Gigs of RAM and 2GB storage. Also, you won’t be able to use Android Emulator on your PC because it also needs 1 Gigs of RAM. If you have 4-6GB RAM then I would recommend you use SSD(Solid State Drives)  instead of HDD(Hard Disk Drives). It would be very good to have 12 gigs of RAM and SSD for Android Development.

What happens when you don’t have minimum requirements

When you don’t have minimum requirements to run Android Studio, then these things would happen:





  1. Gradle Building will take too much time(around 5 mins) to build a debug APK and about 20-30 mins to build a release APK.
  2. Android Studio will take too much time to start(around 10 mins) which is worst.
  3. It will lag too much if you open another software like Adobe Photoshop, Google Chrome etc.
  4. It will take too much time to close. Sometimes, You will need to close it from Task Manager because it becomes unresponsive when you click on close button.
  5. Your PC may cause Overheating problems.
  6. Simply, you won’t be able to create complex applications which have greater size over 20Mb.

So, to get rid of these things you will need to upgrade your PC first. Or if you’ve all the things except RAM you can use Readyboost to boost your performance. Learn more: How To Increase RAM Of PC Using Pen Drive


System Requirements for Android Studio

Windows

  • Microsoft® Windows® 7/8/10 (32- or 64-bit) [Tested on Windows 8.1 64 bit Build 9600]
  • 3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
  • 2 GB of available disk space minimum,
    4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution

Mac

  • Mac® OS X® 10.10 (Yosemite) or higher, up to 10.13 (macOS High Sierra)
  • 3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
  • 2 GB of available disk space minimum,
    4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution

Linux

  • GNOME or KDE desktopTested on Ubuntu® 14.04 LTS, Trusty Tahr (64-bit distribution capable of running 32-bit applications)
  • 64-bit distribution capable of running 32-bit applications
  • GNU C Library (glibc) 2.19 or later
  • 3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
  • 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution

 

How To Install Android Studio on Windows

So, you took a look at minimum requirements for install Android Studio on Windows. Below is the step by step guide for installing Android Studio on your Windows PC

  1. Go to: https://developer.android.com/studio/index.html.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  2. Now you’ll need to Download Android Studio. Click on DOWNLOAD ANDROID STUDIO button.
  3. Accept Terms and Conditions.
  4. Now open .exe file you downloaded.
  5. And Setup will be started within few seconds.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  6. Click Next

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  7. Select AVD if you wanna emulate.
  8. Click Next

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  9. Enter location of Android Studio.
  10. Click Next

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  11. Check Do not create shortcuts if you don’t wanna create shortcuts on Start menu.
  12. Click Next.

 

Watch Installation Video

 


 

How to Install Android SDK Tools on Windows

 

  1. Go to https://developer.android.com/studio/index.html#downloads.
  2. Scroll down to see SDK tools.
  3. Now download SDK tools for Windows.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  4. Unzip the downloaded file to C:\Users\YOURUSERNAME\.android\sdk.
  5. Important, Change YOURUSERNAME to your username of PC.
  6. Now, open SDK Manager.exe from the directory of SDK.
  7. You don’t need to install all the things.
  8. First, in tools install Android Studio Platform-Tools and Android Studio Build-Tools. You should install the latest one.
  9. Since, Android P is latest but I won’t recommend that to be installed. I would recommend you to install API LEVEL 27(Android Oreo). From API 27 install SDK Platform and Sources for Android SDK. If you want to emulate then you can install one of the available System Images.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  10. Install everything from Extras except NDK Bundle, you can install NDK directly from here but sometimes it fails to download. So, we will install it manually.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

Now everything has been set up, you only need to tell Android Studio that you have installed Android SDK Manager and SDK tools. So, how will you tell that?

You can set Environment Variables realated to SDK:

 

  1. Go to Control Paneland search for System.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  2. Select System and select Advanced System Options.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  3. Select Environment Variables.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  4. Create a new Variable named ANDROID_HOME and set its value to the location of SDK under System Variables.

    How To Setup Android Studio and Android SDK, NDK on Windows - learn android development

    How To Setup Android Studio and Android SDK, NDK on Windows

  5. After all of this you can click OK.


 

How to install Android NDK on Windows

Now everything has been set up to start Android development. You can now create applicatios for Android but if you want to create more complex applications or if you have need to use libraries like ffmpeg, libjpeg, libpng, openCV etc. You would need to install NDK. NDK is also helpful if you have already written some codes or libraries in C/C++ and these codes are called Native Scripts in Android development. If you are just learning Android development and working on demo apps, then typically you don’t need to install NDK. Steps for installing Android NDK are given below:


 

    1. Go to https://developer.android.com/ndk/downloads/index.html and download the stable version for Windows.
    2. Now extract r-VERSION folder from downloaded .zip file to C:\Users\YOURUSERNAME\.android\ndk.
    3. As I have previously told how to add Environment Variables, set ENV as:
      Name: NDK_PATH
      Value: C:\Users\YOURUSERNAME\.android\ndk


Everything has been set up now you can create complex Android Apps and they can also use C\C++ with JNI.

How To Get Started With Android Development

How To Increase RAM Of PC Using Pen Drive

Best Mobile Phones of 2018! Galaxy Note 8 , iPhone

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *