Installation Tutorial for Android SDK with Netbeans

moodusroundoSoftware and s/w Development

Aug 15, 2012 (4 years and 10 months ago)

584 views

Installation Tutorial for
Android
SDK
with

Netbeans

1. Downloads:

JDK
:
http://www.oracle.com/technetwork/java/javase/downloads/jdk
-
6u26
-
dow
nload
-
400750.html

JRE
:

http://www.oracle.com/technetwork/java/javase/downloads/jre
-
6u2
6
-
dow
nload
-
400751.html

NetBeans (All Supported T
echnologies

Recommended):
http://netbeans.org/downloads/index.html

Android SDK:
http://deve
loper.android.com/sdk/index.html

2. Installation:


(1)Install JDK


(2)Install JRE


(1)Install NetBeans


(2)Install
Android SDK
(extract first, and then run SDK
Setup.exe
)


3. Configure SDK Manager


(1)Install All Package(Recommended)



We just use SDK
Platform Android 2.3.3 in this tutorial



(2)Set up the environment



Click
-
> Start



Search keyword

environment




Choose
-
> Edit the system environment variables






Click
-
> Environment Variables






Set the Variable

PATH


either in User Variables
or System



Variables. Add the SDK’s tools location into Variable Value, like:



C:
\
Program Files
\
Android
\
android
-
sdk
\
tools
”.



Add JDK

bin’s location into

PATH


of

User Variable




location to Variable Value


like "C:
\
Program

Files
\
Java
\
jdk1.6.0_23
\
bin
” (use ‘
;
’ to separate each value).

Note: the jdk’s version and location may be changed according to the

version you downloaded and installed, please remember to change

it.Click OK.



Set the Variable

CLASSPATH

, add the follow
ing two values:



%JAVA_HOME%
\
lib
\
dt.jar
;

%JAVA_HOME%
\
lib
\
tools.jar



Create two new variables:

JAVA_HOME


and

JRE_HOME


in user


variables (the version number and location could be changed



according to the version you downloaded and installed)



Add

C:
\
Program Files
\
Java
\
jdk1.6.0_23
” to

JAVA_HOME




Add

C:
\
Program Files
\
Java
\
jre1.6.0_07
” to

JRE_HOME







Then, go to folder:

C:
\
Program Files
\
Android
\
android
-
sdk
\
”,
open SDK Manager.exe


Click

Vitual devices

-
>

New





Set the

Name

,

Target

,

Built
-
in

, and

Hardware Property


as following, then click

Create AVD

, and close the SDK Manager


(3)Setup Android plugin in Netbeans


Click

Tools

-
>

Plugins

-
>

Setting


-
>

Add



With the name

nbandroid


and the following address, click
OK.


http://kenai.com/downloads/nbandroid/updatecenter/updates.xml





Then go to

Available Plugins

, find and check plugins, click
install.(If you are using NetBeans 7.0, plea
se don’t check

Android
Test Runner for NetBeans 6.9(or 6.9.1)


and
vice versa
)



OK, we have done it. Then you can build an Android project.