Wednesday 18 October 2017

1. Installing Android Studio in Windows/Ubuntu

  1. Installing Android Studio in Windows/Ubuntu

Quick Points:

1. Install Java
2. Download Android Studio
3. Install Android studio
4. Install SDK
5. Install Android studio in Ubuntu/Linux

Install Java

  • First install java 8.

Download Android Studio

Google provides Android Studio for the Windows, Mac OS X, and Linux platforms.make sure your platform meets one of the following requirements:
Windows OS
  • Microsoft Windows 7/8/10 (32-bit or 64-bit)
  • 2 GB RAM minimum, 8 GB RAM recommended
  • 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
  • JDK 8
  • For accelerated emulator: 64-bit operating system and Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality
Mac OS
  • Mac OS X 10.8.5 or higher, up to 10.11.4 (El Capitan)
  • 2 GB RAM minimum, 8 GB RAM recommended
  • 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
  • JDK 6
Linux OS
  • GNOME or KDE desktop: Tested on Ubuntu 12.04, Precise Pangolin (64-bit distribution capable of running 32-bit applications)
  • 64-bit distribution capable of running 32-bit applications
  • GNU C Library (glibc) 2.11 or later
  • 2 GB RAM minimum, 8 GB RAM recommended
  • 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
  • JDK 8
  • For accelerated emulator: Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality, or AMD processor with support for AMD Virtualization (AMD-V)


Launch android-studio-bundle-162.4069837-windows.exe file.  The installer responded by presenting the Android Studio Setup dialog box

Clicking Next took me to the following dialog box, which gives you the option to decline installing the Android SDK (included with the installer) and an Android Virtual Device (AVD).

I chose to keep the default settings. After clicking Next, you'll be taken to the license agreement dialog box. Accept the license to continue the installation.
The next dialog box invites you to change the installation locations for Android Studio and the Android SDK.


Change the location or accept the default locations and click Next.
The installer defaults to creating a shortcut for launching this program, or you can choose to decline. I recommend that you create the shortcut, then click the Install button to begin installation.

The resulting dialog box shows the progress of installing Android Studio and the Android SDK. Clicking the Show Details button will let you view detailed information about the installation progress.
The dialog box will inform you when installation has finished. When you click Next, you should see the following:
Now, installation of android studio is done!!!!

Running Android Studio

When we click on finish button, we will get android flash screen:
first dialog box will appear and show some configuration import if previous version is installed on your system. If you are new, seelct second option as shown below.

When you click on OK button, you will get Android Studio Setup Wizard dialog box: which will suggest whether to download sdk or use an existing SDK.

When you click Next, the setup wizard invites you to select an installation type for your SDK components. For now I recommend you keep the default standard setting.
androidstudiop1 fig10
Click Next and verify your settings, then click Finish to continue.
Review various settings before installation of SDK components.

The wizard will download and unzip various components. Click Show Details if you want to see more information about the archives being downloaded and their contents.
androidstudiop1 fig12

For adding emulator, I will add this topic in later sessions. As of now, just skip it.
Finally, click Finish to complete the wizard. You should see the Welcome to Android Studio dialog box:
Create a new Android Studio project, work with an existing Android Studio project, and more.

For Ubuntu/Linux users,

  1. Download Android Studio from https://developer.android.com/studio/index.html , use All Android Studio Packages
  2. Extract the archive file into an appropriate location for your applications, eg: /opt. Use the filename of your downloaded archive, in my example android-studio-ide-141.2178183-linux.zip
  3. sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt
  4. To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh. Or use a desktop file, see below.
  5. You may want to add /opt/android-studio/bin to your PATH environmental variable so that you can start Android Studio from any directory.
Its done!!!
Happy Learning!!!




No comments:

Post a Comment

Extract error records while inserting into db table using JDBCIO apache beam in java

 I was inserting data into postgres db using apache beam pipeline. it works perfectly with JdbcIO write of apache beam library. But, now, i ...