Sei sulla pagina 1di 17

Installing configuring Android Studio

Aim
To install and configure android studio in windows pc.
Apparatus Required:
Android studio application
Java jdk file
Windows 8.1

PROCEDURE

To install Java jdk


Download and Install

It is recommended, before you proceed with online installation you may want to disable your
Internet firewall. In some cases the default firewall settings are set to reject all automatic or
online installations such as the Java online installation. If the firewall is not configured
appropriately it may stall the download/install operation of Java under certain conditions.
Refer to your specific Internet firewall manual for instructions on how to disable your
Internet Firewall.
Step1: Go to the Manual download page
Step2:Click on Windows Online
Step3:The File Download dialog box appears prompting you to run or save the download file
Step4:To run the installer, click Run.
Step5:To save the file for later installation, click Save.
Choose the folder location and save the file to your local system.
Tip: Save the file to a known location on your computer, for example, to your desktop.
Double-click on the saved file to start the installation process.
Step6:The installation process starts. Click the Install button to accept the license terms and
to continue with the installation.

Step7:Oracle has partnered with companies that offer various products. The installer may
present you with option to install these programs when you install Java. After ensuring that
the desired programs are selected, click the Next button to continue the installation.
Step8:A few brief dialogs confirm the last steps of the installation process; click Close on the
last dialog. This will complete Java installation process.

Detect older versions (8u20 and later versions). Starting with Java 8 Update 20 (8u20),
on Windows systems, the Java Uninstall Tool is integrated with the installer to provide an
option to remove older versions of Java from the system. The change is applicable to 32 bit
and 64 bit Windows platforms.

set Permanent Path of JDK in Windows


For setting the permanent path of JDK, you need to follow these steps:
Go to MyComputer properties -> advanced tab -> environment variables -> new tab of user
variable -> write path in variable name -> write path of bin folder in variable value -> ok ->
ok -> ok

For Example:
step1:Go to MyComputer properties

Step2:click on advanced tab

step3:click on environment variables

step4:click on new tab of user variables

step5:write path in variable name

step6:Copy the path of bin folder

step7:paste path of bin folder in variable value

step8:click on ok button

step9:click on ok button

Now your permanent path is set.You can now execute any program of java from any drive.

To Installing Android Studio


step1. Visit http://developer.android.com/sdk/index.html.
step2. Click the download button for your operating system (Windows,
Mac, or Linux).
step3. (On a Windows :) Double-click the downloaded .exefile's icon. In
the resulting Finder window, drag Android Studio (or Android
Studio.app) to the Applications folder.
Here are some wizard steps that I see when I install Android Studio on Windows:

Step4:Choose drive to install Android Studio

Step 5: Custom the RAM size for Android studio to increase the performance.

Step 6: Download the update patch file for Android studio.

(Otherwise add the patch file into the system path


C:\Users\Profilename\AppData\Local\Android\sdk
and retry to Update is successfully created)
Step 7: Installation is finished, Android is ready to use

Launching Android Studio and Importing an Android


Project
REMEMBER: For an app that involves two different projects (projects such as
03-01-05 and 03-01-05Other), you must get Android Studio to run both projects
(on the same emulator or the same Android device).
Step 1. Double-click the Android Studio app's icon.

Step 2. In the Welcome screen, select Open and Existing Android Studio
Project.

Step 3. Navigate to the folder containing one of my Android apps.

REMEMBER: In the All-in-One book, the first Android app is in Listing 3-1
in Book I. (So the folder's name is 01-03-01.). In the Java Programming
for Android Developers book, the first Android app is in Listing 4-1, not
Listing 3-1. (So the folder's name is 04-01.)
Step 4. Select the build.gradlefile inside that folder.
Step 5. Click OK.
As a result, Android Studio's main window opens. The project's files appear on
the left side (in the Project tool window).

Step 6. To see my app's Java code, go to the Project tool window, and
double-click the
app/Java/com.example.myfirstandroidapp/MainActivitybranch.
6
When you do, my Java code appears on the right side (in Android Studio's editor).

Step 7. To see my app's layout, go to the Project tool window, and


double-click the app/res/layout/activity_main.xml (or maybe
app/res/layout/main.xml) branch.
When you do, the Designer tool appears on the right side of Android Studio's
main window. The Designer tool is in one of two modes.
In Design mode, you see the Palette, a preview screen, the Component tree,
and a Properties pane.

In Text mode, you see XML code and a preview screen.

Use the tabs in the lower left corner of the Designer tool to switch between
Design mode and Text mode.
Step 8. To run the project, go to Android Studio's main menu and click
RunRun 'app'.
As a result, you see a Choose Device dialog box.

Result:
Thus we have study about installation and configuration of android studio

Potrebbero piacerti anche