Android Setup

 

Now before we start I would like to first talk about why i want you to learn Android, so if want to ,just skip this paragraph to get straight to the point . Android is a mobile operating system currently developed by GOOGLE (it’s like the uncle who you can ask the awkward questions of your life), based on Linux Kernel . Android has the largest installed base of most operating systems of any kind. It has been the best selling OS on tablets since 2013, and on smartphones it is dominant by any metric. AND IT’s OPEN SOURCE(means it’s free).

Now to start developing android applications you first need a development environment for which you have two choices :

  • ANDROID STUDIO based on Intellij IDEA platform recommended by Google and any other sane person for android development
  • ECLLIPSE (Google officially showed it’s middle finger to it and now its obsolete for android development).

First you need to install one of these and by one of these i mean Android Studio .

Now I will take you through the steps to install the required software for Android .

System Requirements for Android Studio

Windows

  • Microsoft Windows 10/8/7/Vista (32- or 64-bit)
  • 2 GB RAM minimum while 4 GB RAM is recommended (mostly for running emulator for android)
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches(don’t bother)
  • 1280 x 800 minimum screen resolution
  • Java Development Kit (JDK) 7or above
  • Optional for accelerated emulator: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality(This feature is available in most system but disabled i will make a video or give a link in oder to remove the HAXM error you may be getting on running the emulator)

Mac OS X

  • Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks)
  • 2 GB RAM minimum, 4 GB RAM recommended (mostly for running emulator for android)

 

  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches(don’t bother)
  • 1280 x 800 minimum screen resolution
  • Java Runtime Environment (JRE) 6
  • Java Development Kit (JDK) 7
  • Optional for accelerated emulator: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality

On Mac OS, run Android Studio with Java Runtime Environment (JRE) 6 for optimized font rendering. Then you can configure your project to use Java Development Kit (JDK) 6 or JDK 7.or above but always remember stable version is the best version.

Linux

  • GNOME or KDE desktop
  • GNU C Library (glibc) 2.15 or above
  • 2 GB RAM minimum, 4 GB RAM recommended (mostly for running emulator for android)
  • 400 MB hard disk space
  • Minimum 1 GB for Android SDK, emulator system images, and caches(don’t worry about this)
  • 1280 x 800 minimum screen resolution
  • Oracle ® JDK 7 or above
  • 64-bit distribution capable of running 32-bit applications(don’t bother)

SOURCE : developer.android.com

For JAVA RUNTIME and JAVA DEVELOPMENT KIT go to(this is mandatory):blogand

Now if you meet the system requirements on your pc proceed to the given link (you can go anyway even if you don’t):

http://developer.android.com/sdk/index.html

blogand1

The downloaded file will somewhat look like this (my version is old so the build number may be different):

ishankand2.png

Always get the latest but stable version (Be vary of the words developmental , Beta ).

To set up Android Studio on Windows:

  1. Launch the Android Studio . exe file (It will have android logo and world be about 1.11 GB).
  2. Just follow the wizard to install Android Studio and any necessary SDK tools but remember the chosen directory of installation.
  3. Sometimes in Windows systems, the setup does not find where the JDK is installed. If you encounter this problem, you need to set an environment variable indicating the correct location or choose the browse and go find a path like this : C:\Program Files\Java\jdk1.7.0_21.

­­­

4.Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your Java Development Kit (JDK) folder, for example C:\Program Files\Java\jdk1.7.0_21.

 

The other tools and SDK packages used by Android Studio are installed in a different directory. So in order to access the tools directly, use a terminal to navigate to the location where they are installed. For example:

\Users\<user>\sdk\

These tools are required if you want to debug with your mobile or want to generate your hash key etc (we will get into this later).

Now your studio has been set up. So you can start developing Android applications­.

Advertisements

4 Comments Add yours

  1. sam says:

    hi…i am a beginner in android app development
    while i launching the AVD in emulator i got the error as:
    Cannot launch AVD in emulator.
    Output:
    emulator: WARNING: VM heap size set below hardware specified minimum of 384MB
    Could not load func glBindFramebuffer
    emulator: WARNING: Setting VM heap size to 384MB
    Hax is enabled
    Could not load func glGenFramebuffers
    Hax ram_size 0x20000000
    Could not load func glFramebufferTexture2D
    HAX is working and emulator runs in fast virt mode.
    Could not load func glCheckFramebufferStatus
    Could not load func glDeleteFramebuffers
    Could not load func glIsRenderbuffer
    Could not load func glBindRenderbuffer
    Could not load func glDeleteRenderbuffers
    Could not load func glGenRenderbuffers
    Could not load func glRenderbufferStorage
    Could not load func glGetRenderbufferParameteriv
    Could not load func glFramebufferRenderbuffer
    Warning: requested ram_size 1536M too big, reduced to 512M
    qemu-system-i386.exe: -drive if=none,index=1,id=cache,file=C:\Users\admin\.android\avd\Nexus_6_API_23.avd/cache.img: could not open disk image C:\Users\admin\.android\avd\Nexus_6_API_23.avd/cache.img: Could not open ‘C:\Users\admin\.android\avd\Nexus_6_API_23.avd/cache.img’: Invalid argument

    i dont know how recover this….can you plz help me out in this”????

    Like

    1. ishankwebdev says:

      You pc specs is low i think , install bluestacks
      http://www.bluestacks.com
      Or genymotion

      Like

  2. ishankwebdev says:

    You pc specs is low i think , install bluestacks
    http://www.bluestacks.com
    Or genymotion

    Like

  3. ishankwebdev says:

    Androud emulator is slow anyways

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s