How to set up NetBeans IDE 7.1 for Android Development
The original content is copyrighted to Project Kenai. Please check the below link
http://kenai.com/projects/nbandroid/pages/Install
To begin with
You must be having NetBeans IDE 7.1 installed.
Step 1
Step 1
Install using autoupdate center
Go to Tools -> Plugins and go to the Settings tab inside the new Plugins window opened
Press the Add button and enter the Name Android and URL below
http://kenai.com/downloads/nbandroid/updatecenter/updates.xml
Now click OK and go ahead. The screen will look like this
Go to Tools -> Plugins and go to the Settings tab inside the new Plugins window opened
Press the Add button and enter the Name Android and URL below
http://kenai.com/downloads/nbandroid/updatecenter/updates.xml
Go to Available Plugins tab in the same window. Select Android and the
appropriate version of Android Test Runner plugin which matches your
IDE.
Click Next and Accept Licence Agreement and click Install.
Ignore Untrusted Certificate warning and Press Continue.
Press Finish and that's it. You are ready for Android Development in
NetBeans IDE .
Step 2
Creating a test Android project.
Go to File -> New Project and Choose Android. Click Next.
Enter Project Name, Package Name and Activity Name which is the first screen in your application.
An error will be displayed below asking to choose the Android SDK
location. Choose the Android SDK direction location from your file
system by clicking on Manage Android SDK button.
Now based on the Android Virtual Devices configured in your SDK choose one.
You can install/configure AVD from Tools -> Android SDK and AVD Manager
You will find an error saying package android.R cannot be found. This is an auto generated class in Android.
****Do not right click error and select the hint Import android.R.****
Just Right click your project and select Clean and Build. This error will be auto fixed.
You are all set! Happy Android Coding!!!















No comments:
Post a Comment