SlideShare a Scribd company logo
1 of 27
Installing Android SDK on NetBeans
by GregRJacobs | Jul 30, 2011 | Android, Java, Languages, Linux, Platforms, Programming, Windows | 62 Comments
In this article we are going to focus on installing the Android SDK on the NetBeans Integrated Development Environment (IDE). Normally
people would use eclipse as their development environment when programming for the OS platform asandroid.com offers the instructions
for doing it this way. We are going to stray from this and use NetBeans as it can also be used for a variety of different languages and has a
cleaner interface. To start out we need to make sure that NetBeans is installed and we will need to note what version we are using. After
NetBeans is installed we can begin configuring the environment for Android.
The first thing we are going to want to do is install the Android SDK on our computers. Android.com has made this easier for use by offering
Windows users an executable file to download and run. After we have downloaded the application we are going to need to locate it. After it
has been located we will double click on the executable and the first screen should appear. Below are some screen shots of the options I
chose while walking through the install:
After this installation has been completed we can now proceed to start up NetBeans. After NetBeans is open we are going to click on the
menu bar and go toOptions -> Plugins. This screen is used for adding plugins that can improve the IDE itself or help the way you code. In
this instance we are wanting to add the Plugin nAndroid so we can start developing some Android applications in NetBeans. This is the first
screen you will be presented with when the plugins option is chosen:
We want to navigate to the settings tab where we will want to go to the Add button and click it. We will be presented with a screen to add
the name of the new plugin and the source of the plugin. At the end of this the screen should look something along the lines of this:
We can then proceed to check the box that says Check for Updates Automatically. This is so we don’t have to manually search for an
update when there is one. After that is complete we can press OK and see that the plugin has been added to the list but not installed yet.
For that to happen we need to click on the tab that says “Available Plugins“. After we are there we can utilize the search box on the right
hand side by typing “Android” into it. It should bring up four options of which we will only need two. These two will be “Android” and
“Android Test Runner For NetBeans 7” as that is the version of NetBeans we are using. After that the following screen shots will go through
the install of the product with you after you press the install button:
After this is done we only have one thing left to do and that is hook in the Android SDK we downloaded into the NetBeans environment.
This can be done by clicking on “Tools” in the menu bar and choosing “Options” at the very bottom. We then want to navigate to
“Miscellaneous” where we will see an “Android” tab in the mix. Click on it and we will be presented with the following screen:
We need to click browse and then locate the Android SDK. Once found remember the path that the Android SDK is located at as we will
need to use this once more before the end of this tutorial. Aftr you have delved into the Android SDK and selected the folder we can then
press OK. Afterwards your screen with the location to the SDK should look like this:
We now need to go to our windows explorer, keeping in mind the path the the SDK and find the SDK one more time. After it has been found
we will want to double click on the application executable named “SDK Manager”. Once it is open we will want to select all boxes in the
“Android Repository” and “Third Party Add-Ons” that will be located under “Available Packages“.Once this is done we can then press
“Install Selected” and wait for them to be done.
After the packages have installed you have completed all the requirements necessary to develop an Android application within NetBeans.
This tutorial will be helpful if you are interested in Android Development and the new 201 Development series coming to Binary Wasteland
in the future. Until the next tutorial, Happy Hacking!
Update
It has been determined people were having trouble getting the NetBeans and Android SDK combo to work and it is because one key issue
wasn’t mentioned. When we download the Android SDK we need to add the SDK to a directory that will not have any spaces. After this is
done we need to add that directory to the System Variables under Path. To do this we need to click the start menu, navigate to computer,
right click it and pick properties. You then need to clickAdvanced System Setting on the right hand side of the screen. You will then be
presented with the following screen:
We then need to then click Environmental Variables and we will then get the following screen:
We will want to scroll down in System Variables to the Path variable and click the Edit button and we will get this following screen:
We will want to navigate to the end of the line and if there is not a “;” at the end then add one. After that we need to add the path to the
Android SDK and more specifically the tools folder as shown above. We will need to change the reference in NetBeans to the Android
SDK. After this is done you should be able to run the program and the Android SDK will start up and load your program. Any furthur
troubles leave a comment below and we will be sure to help! Until next time, Happy Hacking!
I have followed all the steps mention, double checked it, and it looks exactly as you have described.
I still can not sue it, in NETBEANS when I start a new project, I select Android from the Categories, and I select Android Project
from projects list. I click next and I have to fill in Name and Location. I fill in all parameters and I get an error telling me that "
Package name is not valid" I have set the package name to "First Android".
What is going on.
Torbjorn Zetterlund Greg R. Jacobs • 4 years ago
that help me through that issue - after the new project was created, I have an error inMainActivity.java file - I got the same
problem when I imported a sample project - same problem.
It telling me that package R does not exist - when i check the hints it tells me Add import for Android.R, is this an issue
with finding the Android library or is there a library I have not downloaded correctly.
Introduction
NBAndroid provides support for of Android applications development cycle. Its functionality covers various aspects of Android developme
 Core Android SDK support.
 Project support - works with Android SDK projects. Edit, build, and run or debug cycle is supported using emulators or real devices.
 LogCat viewer integrated into IDE is crucial when tracing what's going on while your code is running on device.
 Improved editors for Android XML files.
 GUI layout preview. This is initial version aiming to give you possibility to design UI more quickly in the IDE without turnaround to rede
 NBAndroid Extensions - set of productivity enhancements provided as paid service to support the plugin development.
 Support for Android projects using new Gradle build system with NBAndroid Extensions.
[ You have to be logged in to be able to comment.]
User Comments
How To Install Android Package on Netbeans
Try below for installation
http://doniphantom.com/konfigurasi-android-sdk-di-netbeans.html
Posted by daralgeldi on Nov 24, 2014
Re: Log cat
I do know the plug in has the filtering button on the logcatwindow.but the option for filtering is poor.
I means thatI want to see justinfo from my app when I print out it with system.out.printor when I dump the stack with the er.printstacktrace
With the Logcat of eclipse Icould filter by application name.
but go to netbean,I didn'tsee that options.
I hate the eclipse way to read code,and it run slow too.
I love the netbean way, it looks smarter.(thoughtit takes alotof time to run android app).
The supportfor xml still poor.wish it could supportxml layout like eclipse does.(link between resource name and xml element)
Posted by harunaga on May 20, 2013
Re: Log cat
To harunaga:obviouslythere is possibilityto filter logcatmessages.Use top button from the button bar on the left side oflogcat win dow to create a filter.
Posted by rkubacki on May 03, 2013
Log cat
Log cat has no option for filtering out put info from my app.
So I get a lot of redundantinfo. or whatI should do to justsee the out put from my app from sdtout and std err ???
Posted by harunaga on May 03, 2013
support for ndk
Hi. I prefer use netbeans than eclipse due to the delay of eclipse.butthis plug in seems to notsupportndk. I can not see the folder jni in the projectview.
The supportfor xml still poor.the plug in didn't give the feeling like the feeling of using android in eclipse.
But I still like reading code in netbeans.
Posted by harunaga on Apr 26, 2013
re: Supported android SDK version
RecentAndroid SDKs are supported.There is sometimes a shortdelay but at the momentthe current one works properly (r16 IIRC).
As for the downloads:the latter one with the timestamp is newer.It's better to use AUC.
Posted by rkubacki on Jan 27,2012
Supported android SDK version
Anybody knows supported android version for kenai ?
(in other words,what are the andorid sdk version kenai can handle)
Which one is latest?
http://kenai.com/projects/nbandroid/downloads/download/v1.5beta/nbandroid-1.5beta.zip
or
http://kenai.com/projects/nbandroid/downloads/download/archives/nbandroid-dev-2011-08-12_15-41-04.zip
Posted by jaisondaniel on Aug 16, 2011
Configure Android in Netbeans
This tutorial will help you to set up Android SDK in Netbeans, for this I have used Netbeans 7.0. I you have not installed netbeans just go to this
link and get this installed right now.
Once you have done this installation just follow the below simple steps to configure Android SDK to it.
Step 1: Configure Android plugin in Netbeans
Step 2: Configure Android SDK in Netbeans
Configure Android plugin in Netbeans
1. Open Netbeans and go to Tools -> Plugins -> Settings, now you can see the below window and click Add button at the bottom right. It
will take you to another window.
2. Give any provider name you wish but the URL given
herehttp://kenai.com/projects/nbandroid/downloads/download/updatecenter/updates.xml and click OK.
It will check for some updates and add Android to the list.
3. Now go to Available plugins tab you can see the Name provided above (“Android”) in the list as shown below.
Click the check box in the left and select install at the bottom. We are about to install Android plugin into Netbeans, just go ahead and
click next, accept the license agreement and proceed; you could see the plugin is being downloaded.
Then click Continue in Verify certificate screen, now you plugin should have got installed now click Finish.
4. We can see increase in number of options at the top as well in Tools link. Then we are correct we have finally configured Android plugin
into Netbeans.
Configure Android SDK in Netbeans
If you have not configured Android SDK, just go to this link and configure it first.
1. Once done with the above steps, go to Tools -> Android SDK and AVD Manager, a pop up will appear click OK, below screen will
appear.
2. Select Browse and locate Android SDK path as shown below and Open and OK in the previous window. Now you have configured
Android SDK in Netbeans. To validate your configuration proceed with next step.
3. Go to Tools -> Android SDK and AVD Manager, now you could see a different window, as shown below. It indicates that SDK platform
corresponding to different OS versions has been installed. Other packages can be downloaded and installed based on developer’s choice
by selecting the check box and installing packages by using the bottom.Finally we have come to the end of Android SDK configuration in
Netbeans, next post will help you to run a sample program in Netbeans.
Thus setting up Android in Netbeans is finished.. Now go ahead and start your development.
Hello World Android project in Netbeans
To proceed with follow this link and configure Android SDK in Netbeans first.
1. Once Android SDK is configured, open Netbeans, go to File -> New Project and create New Android Project as shown below.
2. Select Next and proceed , fill in the details requested.
Project Name: This name is the identifier of your application and will be displayed everywhere your application is being used. For instance your
application will be displayed in this name in Google market. So name it with care.
Package Name: This follows the same conventions like Java package. Many developers does mistake here by using a single identifier (HelloWorld) or using
two identifiers separated by space(Hello World) but this is not the way to name a Java package.
If you do so you will get the below error message. Package name should have two identifiers separated by periods(.)
Example: com.helloworld
So if you follow the correct package naming convention you will be able to proceed as shown below.
Target platform: It is against which you are going to compile your code, chose as you wish.
3. So simple as such, now click Finish. Now select your project either press F6 or run button at the top to execute your project. Emulator window will open to
display “Hello World, MainActivity “.
Thus we have created Hello world application in Netbeans...

More Related Content

What's hot

Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from ScratchTaufan Erfiyanto
 
Simple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test ApplicationSimple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test ApplicationAritra Mukherjee
 
Lecture #1 Creating your first android project
Lecture #1  Creating your first android projectLecture #1  Creating your first android project
Lecture #1 Creating your first android projectVitali Pekelis
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android developmentGhufran Hashmi
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspectiveGunjan Kumar
 
Introduction to android coding
Introduction to android codingIntroduction to android coding
Introduction to android codingHari Krishna
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Svetlin Nakov
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setupChina Bigs
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGapDoncho Minkov
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorialmaster760
 

What's hot (20)

Android studio
Android studioAndroid studio
Android studio
 
Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from Scratch
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
 
Simple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test ApplicationSimple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test Application
 
Google Android
Google AndroidGoogle Android
Google Android
 
Android App development III
Android App development IIIAndroid App development III
Android App development III
 
Lecture #1 Creating your first android project
Lecture #1  Creating your first android projectLecture #1  Creating your first android project
Lecture #1 Creating your first android project
 
Android App development I
Android App development IAndroid App development I
Android App development I
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android development
 
Getting started with android studio
Getting started with android studioGetting started with android studio
Getting started with android studio
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspective
 
Introduction to android coding
Introduction to android codingIntroduction to android coding
Introduction to android coding
 
CI & CD- mobile application
CI & CD- mobile applicationCI & CD- mobile application
CI & CD- mobile application
 
Android Applications Development
Android Applications DevelopmentAndroid Applications Development
Android Applications Development
 
Summary Of Polycom Cast App
Summary Of Polycom Cast AppSummary Of Polycom Cast App
Summary Of Polycom Cast App
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021
 
Android Intro
Android IntroAndroid Intro
Android Intro
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setup
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGap
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 

Viewers also liked

Social networking
Social networkingSocial networking
Social networkingYash Mehta
 
웹 접근성 부록 B
웹 접근성 부록 B웹 접근성 부록 B
웹 접근성 부록 BSoojin Lim
 
áLbum de fotografías
áLbum de fotografíasáLbum de fotografías
áLbum de fotografíastrinia28
 
Gas water heater
Gas water heaterGas water heater
Gas water heaterYash Mehta
 
Prezentacja
PrezentacjaPrezentacja
Prezentacjakavayee
 
Education resource centre
Education resource centreEducation resource centre
Education resource centreacalfredo19811
 
Municipal water treatment project
Municipal water treatment projectMunicipal water treatment project
Municipal water treatment projectdpietsch14
 
UI사용성 테스트 실무 - 주요 이슈 사항별 사용성 검토 사항 정리
UI사용성 테스트 실무 - 주요 이슈 사항별 사용성 검토 사항 정리UI사용성 테스트 실무 - 주요 이슈 사항별 사용성 검토 사항 정리
UI사용성 테스트 실무 - 주요 이슈 사항별 사용성 검토 사항 정리Soojin Lim
 
경제심리학 챕터 10 - 왜 인간은 똑같은 실수를 되풀이하는가?
경제심리학 챕터 10 - 왜 인간은 똑같은 실수를 되풀이하는가?경제심리학 챕터 10 - 왜 인간은 똑같은 실수를 되풀이하는가?
경제심리학 챕터 10 - 왜 인간은 똑같은 실수를 되풀이하는가?Soojin Lim
 
Apostila aim básico excel
Apostila aim básico   excelApostila aim básico   excel
Apostila aim básico excelnailton galdino
 

Viewers also liked (15)

Social networking
Social networkingSocial networking
Social networking
 
Brian
BrianBrian
Brian
 
Elgg in Healthcare
Elgg in HealthcareElgg in Healthcare
Elgg in Healthcare
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
웹 접근성 부록 B
웹 접근성 부록 B웹 접근성 부록 B
웹 접근성 부록 B
 
áLbum de fotografías
áLbum de fotografíasáLbum de fotografías
áLbum de fotografías
 
What is new in elgg 1.8?
What is new in elgg 1.8?What is new in elgg 1.8?
What is new in elgg 1.8?
 
Gas water heater
Gas water heaterGas water heater
Gas water heater
 
Prezentacja
PrezentacjaPrezentacja
Prezentacja
 
Education resource centre
Education resource centreEducation resource centre
Education resource centre
 
Municipal water treatment project
Municipal water treatment projectMunicipal water treatment project
Municipal water treatment project
 
IT in banking
IT in bankingIT in banking
IT in banking
 
UI사용성 테스트 실무 - 주요 이슈 사항별 사용성 검토 사항 정리
UI사용성 테스트 실무 - 주요 이슈 사항별 사용성 검토 사항 정리UI사용성 테스트 실무 - 주요 이슈 사항별 사용성 검토 사항 정리
UI사용성 테스트 실무 - 주요 이슈 사항별 사용성 검토 사항 정리
 
경제심리학 챕터 10 - 왜 인간은 똑같은 실수를 되풀이하는가?
경제심리학 챕터 10 - 왜 인간은 똑같은 실수를 되풀이하는가?경제심리학 챕터 10 - 왜 인간은 똑같은 실수를 되풀이하는가?
경제심리학 챕터 10 - 왜 인간은 똑같은 실수를 되풀이하는가?
 
Apostila aim básico excel
Apostila aim básico   excelApostila aim básico   excel
Apostila aim básico excel
 

Similar to Install Android SDK in NetBeans

Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thRishi Kumar
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdfRebaMaheen
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdfRebaMaheen
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptxSundaresanB5
 
Introduction to Android and Java.pptx
Introduction to Android and Java.pptxIntroduction to Android and Java.pptx
Introduction to Android and Java.pptxGandhiMathy6
 
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...InnovationM
 
How to Install and Set up Android Studio.pptx
How to Install and Set up Android Studio.pptxHow to Install and Set up Android Studio.pptx
How to Install and Set up Android Studio.pptxMSivani
 
Creating an Uber Clone - Part XXXIII - Transcript.pdf
Creating an Uber Clone - Part XXXIII - Transcript.pdfCreating an Uber Clone - Part XXXIII - Transcript.pdf
Creating an Uber Clone - Part XXXIII - Transcript.pdfShaiAlmog1
 
How to develop a Flutter app.pdf
How to develop a Flutter app.pdfHow to develop a Flutter app.pdf
How to develop a Flutter app.pdfSmith Daniel
 
Getting started with immersive technologies
Getting started with immersive technologiesGetting started with immersive technologies
Getting started with immersive technologiesUchechukwu Obimma
 
GDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NGDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NImam Raza
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfarfa442827
 

Similar to Install Android SDK in NetBeans (20)

Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12th
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 
Introduction to Android and Java.pptx
Introduction to Android and Java.pptxIntroduction to Android and Java.pptx
Introduction to Android and Java.pptx
 
Android session 1
Android session 1Android session 1
Android session 1
 
Compose Camp - Session2.pdf
Compose Camp - Session2.pdfCompose Camp - Session2.pdf
Compose Camp - Session2.pdf
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
 
How to Install and Set up Android Studio.pptx
How to Install and Set up Android Studio.pptxHow to Install and Set up Android Studio.pptx
How to Install and Set up Android Studio.pptx
 
Android app upload
Android app uploadAndroid app upload
Android app upload
 
Creating an Uber Clone - Part XXXIII - Transcript.pdf
Creating an Uber Clone - Part XXXIII - Transcript.pdfCreating an Uber Clone - Part XXXIII - Transcript.pdf
Creating an Uber Clone - Part XXXIII - Transcript.pdf
 
How to develop a Flutter app.pdf
How to develop a Flutter app.pdfHow to develop a Flutter app.pdf
How to develop a Flutter app.pdf
 
Getting started with immersive technologies
Getting started with immersive technologiesGetting started with immersive technologies
Getting started with immersive technologies
 
Android app development guide for freshers by ace web academy
Android app development guide for freshers  by ace web academyAndroid app development guide for freshers  by ace web academy
Android app development guide for freshers by ace web academy
 
GDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NGDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android N
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
 

Recently uploaded

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Recently uploaded (20)

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

Install Android SDK in NetBeans

  • 1. Installing Android SDK on NetBeans by GregRJacobs | Jul 30, 2011 | Android, Java, Languages, Linux, Platforms, Programming, Windows | 62 Comments In this article we are going to focus on installing the Android SDK on the NetBeans Integrated Development Environment (IDE). Normally people would use eclipse as their development environment when programming for the OS platform asandroid.com offers the instructions for doing it this way. We are going to stray from this and use NetBeans as it can also be used for a variety of different languages and has a cleaner interface. To start out we need to make sure that NetBeans is installed and we will need to note what version we are using. After NetBeans is installed we can begin configuring the environment for Android.
  • 2. The first thing we are going to want to do is install the Android SDK on our computers. Android.com has made this easier for use by offering Windows users an executable file to download and run. After we have downloaded the application we are going to need to locate it. After it has been located we will double click on the executable and the first screen should appear. Below are some screen shots of the options I chose while walking through the install:
  • 3.
  • 4.
  • 5. After this installation has been completed we can now proceed to start up NetBeans. After NetBeans is open we are going to click on the menu bar and go toOptions -> Plugins. This screen is used for adding plugins that can improve the IDE itself or help the way you code. In this instance we are wanting to add the Plugin nAndroid so we can start developing some Android applications in NetBeans. This is the first screen you will be presented with when the plugins option is chosen: We want to navigate to the settings tab where we will want to go to the Add button and click it. We will be presented with a screen to add the name of the new plugin and the source of the plugin. At the end of this the screen should look something along the lines of this:
  • 6. We can then proceed to check the box that says Check for Updates Automatically. This is so we don’t have to manually search for an update when there is one. After that is complete we can press OK and see that the plugin has been added to the list but not installed yet. For that to happen we need to click on the tab that says “Available Plugins“. After we are there we can utilize the search box on the right hand side by typing “Android” into it. It should bring up four options of which we will only need two. These two will be “Android” and “Android Test Runner For NetBeans 7” as that is the version of NetBeans we are using. After that the following screen shots will go through the install of the product with you after you press the install button:
  • 7.
  • 8.
  • 9. After this is done we only have one thing left to do and that is hook in the Android SDK we downloaded into the NetBeans environment. This can be done by clicking on “Tools” in the menu bar and choosing “Options” at the very bottom. We then want to navigate to “Miscellaneous” where we will see an “Android” tab in the mix. Click on it and we will be presented with the following screen:
  • 10. We need to click browse and then locate the Android SDK. Once found remember the path that the Android SDK is located at as we will need to use this once more before the end of this tutorial. Aftr you have delved into the Android SDK and selected the folder we can then press OK. Afterwards your screen with the location to the SDK should look like this: We now need to go to our windows explorer, keeping in mind the path the the SDK and find the SDK one more time. After it has been found we will want to double click on the application executable named “SDK Manager”. Once it is open we will want to select all boxes in the “Android Repository” and “Third Party Add-Ons” that will be located under “Available Packages“.Once this is done we can then press “Install Selected” and wait for them to be done.
  • 11. After the packages have installed you have completed all the requirements necessary to develop an Android application within NetBeans. This tutorial will be helpful if you are interested in Android Development and the new 201 Development series coming to Binary Wasteland in the future. Until the next tutorial, Happy Hacking! Update It has been determined people were having trouble getting the NetBeans and Android SDK combo to work and it is because one key issue wasn’t mentioned. When we download the Android SDK we need to add the SDK to a directory that will not have any spaces. After this is
  • 12. done we need to add that directory to the System Variables under Path. To do this we need to click the start menu, navigate to computer, right click it and pick properties. You then need to clickAdvanced System Setting on the right hand side of the screen. You will then be presented with the following screen: We then need to then click Environmental Variables and we will then get the following screen:
  • 13. We will want to scroll down in System Variables to the Path variable and click the Edit button and we will get this following screen:
  • 14. We will want to navigate to the end of the line and if there is not a “;” at the end then add one. After that we need to add the path to the Android SDK and more specifically the tools folder as shown above. We will need to change the reference in NetBeans to the Android SDK. After this is done you should be able to run the program and the Android SDK will start up and load your program. Any furthur troubles leave a comment below and we will be sure to help! Until next time, Happy Hacking! I have followed all the steps mention, double checked it, and it looks exactly as you have described. I still can not sue it, in NETBEANS when I start a new project, I select Android from the Categories, and I select Android Project from projects list. I click next and I have to fill in Name and Location. I fill in all parameters and I get an error telling me that " Package name is not valid" I have set the package name to "First Android". What is going on.
  • 15. Torbjorn Zetterlund Greg R. Jacobs • 4 years ago that help me through that issue - after the new project was created, I have an error inMainActivity.java file - I got the same problem when I imported a sample project - same problem.
  • 16. It telling me that package R does not exist - when i check the hints it tells me Add import for Android.R, is this an issue with finding the Android library or is there a library I have not downloaded correctly. Introduction NBAndroid provides support for of Android applications development cycle. Its functionality covers various aspects of Android developme
  • 17.  Core Android SDK support.  Project support - works with Android SDK projects. Edit, build, and run or debug cycle is supported using emulators or real devices.  LogCat viewer integrated into IDE is crucial when tracing what's going on while your code is running on device.  Improved editors for Android XML files.  GUI layout preview. This is initial version aiming to give you possibility to design UI more quickly in the IDE without turnaround to rede  NBAndroid Extensions - set of productivity enhancements provided as paid service to support the plugin development.  Support for Android projects using new Gradle build system with NBAndroid Extensions. [ You have to be logged in to be able to comment.] User Comments How To Install Android Package on Netbeans Try below for installation http://doniphantom.com/konfigurasi-android-sdk-di-netbeans.html Posted by daralgeldi on Nov 24, 2014 Re: Log cat I do know the plug in has the filtering button on the logcatwindow.but the option for filtering is poor. I means thatI want to see justinfo from my app when I print out it with system.out.printor when I dump the stack with the er.printstacktrace With the Logcat of eclipse Icould filter by application name. but go to netbean,I didn'tsee that options. I hate the eclipse way to read code,and it run slow too. I love the netbean way, it looks smarter.(thoughtit takes alotof time to run android app). The supportfor xml still poor.wish it could supportxml layout like eclipse does.(link between resource name and xml element) Posted by harunaga on May 20, 2013 Re: Log cat To harunaga:obviouslythere is possibilityto filter logcatmessages.Use top button from the button bar on the left side oflogcat win dow to create a filter. Posted by rkubacki on May 03, 2013 Log cat
  • 18. Log cat has no option for filtering out put info from my app. So I get a lot of redundantinfo. or whatI should do to justsee the out put from my app from sdtout and std err ??? Posted by harunaga on May 03, 2013 support for ndk Hi. I prefer use netbeans than eclipse due to the delay of eclipse.butthis plug in seems to notsupportndk. I can not see the folder jni in the projectview. The supportfor xml still poor.the plug in didn't give the feeling like the feeling of using android in eclipse. But I still like reading code in netbeans. Posted by harunaga on Apr 26, 2013 re: Supported android SDK version RecentAndroid SDKs are supported.There is sometimes a shortdelay but at the momentthe current one works properly (r16 IIRC). As for the downloads:the latter one with the timestamp is newer.It's better to use AUC. Posted by rkubacki on Jan 27,2012 Supported android SDK version Anybody knows supported android version for kenai ? (in other words,what are the andorid sdk version kenai can handle) Which one is latest? http://kenai.com/projects/nbandroid/downloads/download/v1.5beta/nbandroid-1.5beta.zip or http://kenai.com/projects/nbandroid/downloads/download/archives/nbandroid-dev-2011-08-12_15-41-04.zip Posted by jaisondaniel on Aug 16, 2011 Configure Android in Netbeans
  • 19. This tutorial will help you to set up Android SDK in Netbeans, for this I have used Netbeans 7.0. I you have not installed netbeans just go to this link and get this installed right now. Once you have done this installation just follow the below simple steps to configure Android SDK to it. Step 1: Configure Android plugin in Netbeans Step 2: Configure Android SDK in Netbeans Configure Android plugin in Netbeans 1. Open Netbeans and go to Tools -> Plugins -> Settings, now you can see the below window and click Add button at the bottom right. It will take you to another window.
  • 20. 2. Give any provider name you wish but the URL given herehttp://kenai.com/projects/nbandroid/downloads/download/updatecenter/updates.xml and click OK. It will check for some updates and add Android to the list. 3. Now go to Available plugins tab you can see the Name provided above (“Android”) in the list as shown below. Click the check box in the left and select install at the bottom. We are about to install Android plugin into Netbeans, just go ahead and click next, accept the license agreement and proceed; you could see the plugin is being downloaded. Then click Continue in Verify certificate screen, now you plugin should have got installed now click Finish.
  • 21. 4. We can see increase in number of options at the top as well in Tools link. Then we are correct we have finally configured Android plugin into Netbeans. Configure Android SDK in Netbeans If you have not configured Android SDK, just go to this link and configure it first. 1. Once done with the above steps, go to Tools -> Android SDK and AVD Manager, a pop up will appear click OK, below screen will appear.
  • 22. 2. Select Browse and locate Android SDK path as shown below and Open and OK in the previous window. Now you have configured Android SDK in Netbeans. To validate your configuration proceed with next step.
  • 23. 3. Go to Tools -> Android SDK and AVD Manager, now you could see a different window, as shown below. It indicates that SDK platform corresponding to different OS versions has been installed. Other packages can be downloaded and installed based on developer’s choice by selecting the check box and installing packages by using the bottom.Finally we have come to the end of Android SDK configuration in Netbeans, next post will help you to run a sample program in Netbeans.
  • 24. Thus setting up Android in Netbeans is finished.. Now go ahead and start your development. Hello World Android project in Netbeans
  • 25. To proceed with follow this link and configure Android SDK in Netbeans first. 1. Once Android SDK is configured, open Netbeans, go to File -> New Project and create New Android Project as shown below. 2. Select Next and proceed , fill in the details requested. Project Name: This name is the identifier of your application and will be displayed everywhere your application is being used. For instance your application will be displayed in this name in Google market. So name it with care. Package Name: This follows the same conventions like Java package. Many developers does mistake here by using a single identifier (HelloWorld) or using two identifiers separated by space(Hello World) but this is not the way to name a Java package. If you do so you will get the below error message. Package name should have two identifiers separated by periods(.) Example: com.helloworld
  • 26. So if you follow the correct package naming convention you will be able to proceed as shown below. Target platform: It is against which you are going to compile your code, chose as you wish.
  • 27. 3. So simple as such, now click Finish. Now select your project either press F6 or run button at the top to execute your project. Emulator window will open to display “Hello World, MainActivity “. Thus we have created Hello world application in Netbeans...