Você está na página 1de 16

let's make

Explore(/tag/typeid/)
Login(/account/login)
Publish(/about/create.jsp)
| SignUp(/account/gopro?sourcea=header)

Featured: share what


IntelIoT(/id/intel/)
LaserCutting(/tag/typeid/categoryworkshop/channellasercutting/)
you make >
(/)
LifeHacks(/tag/typeid/categoryhome/channellifehacks/)
Valentine'sDay(/howto/valentine's+day+hearts+chocolate+roses/)

AboutThisInstructable
License:

8 521,396views
73favorites

im292fresh
(/member/im292fresh/)
Follow

(/member/im292fresh/)
Morebyim292fresh:

(/id/HowToSetup

(/file/F4QDSGEHSGFXS3B/)

DevelopingAndroidapplicationscanbeafunandexcitingexperience.Toget
startedcreatingAndroidapplications,youneedaproperdevelopmentenvironment.
Thiswillallowyoutouseallthetoolsneededtocreateanappandensureyouwork
efficiently.IwillshowyouhowtosetupaworkingenvironmentusingtheAndroid
SDK,EclipseIDE,andADTPlugin.
ThisInstructableassumesyouhaveknowledgeofwhatAndroidisandhaveabasic
understandingofprogramming,althoughprogrammingisnotrequired.

EclipseforAndroidAppDevelopment/)
Tags:

android(/tag/typeid/keyw ordandroid/)

eclipse(/tag/typeid/keyw ordeclipse/)
ide(/tag/typeid/keyw ordide/)
applications(/tag/typeid/keyw ordapplications/)

understandingofprogramming,althoughprogrammingisnotrequired.
FirstIwillexplainhowtogetandsetuptheAndroidSDKprovidedbyGoogle.Then
IwilladdresstheuseoftheEclipseIDEfordevelopment.Finally,Iwillfocusonthe
ADT(AndroidDevelopmentTool)PluginthatintegratestheAndroidSDKwith
Eclipse.
Approximatetimerequired:20mins.
Requirements:Computerwith300mboffreespace.
Ad

MahindraComviva
GlobalLeaderMobileMoney,MobileBanking&
MobileWallet.Explore!
mahindracomviva.com/Mobile+Services

Step1:ObtaintheAndroidSDK

(/file/FZ09D35HSGFXUMG/)

WeneedtoobtaintheAndroidSoftwareDevelopmentKit.Todothatwemust
firstvisittheSDKdownloadsitebelow.
http://developer.android.com/sdk/index.html
(http://developer.android.com/sdk/index.html)
Scrolltothebottomofthewebpageandselectthe'DownloadtheSDKTools'
button.

mobile(/tag/typeid/keyw ordmobile/)

Related

Howto:AndroidScreen
Shots(/id/HowtoAndroid
ScreenShots/)
byTheSmartLemon
(/id/Howto (/member/TheSmartLemon/)
Sowhatyouwannado?
Hacker!Codecracker!
Slacker!(/id/Sowhatyou
wannadoHackerCode
(/id/Sowhat crackerSlac/)
BuildingYourFirstAndroid
Application(/id/Building
YourFirstAndroid
Application/)
(/id/Building bytgreiner314
AndroidDevelopment:
CreatingaBasicCalculator
(/id/AndroidDevelopment
CreatingaBasicCalculator/)
(/id/Android byjastuder(/member/jastuder/)
JogidroidMyandroidapp
(/id/JogidroidMyandroid
app/)
by
(/id/Jogidroid (/member/%D8%A7%D8%B3%D8%AF+%D

Thiswillopenafiletobesavedsomewhere.

Eclipse4
Training&Support
eclipsesource.com/e4

Get training & support for Eclipse4


(e4)

Open-source API
tools
Step2:InstalltheAndroidSDK

(/file/FFMZ698HSGFXX2A/)

Openthefilewejustdownloaded.
Thiswillopenanexecutablewhichwillaskyouabouttheinstallationprocess.
Whenyougettotheinstalllocationscreen,makesureyouchoosealocation
youremember(wewillneeditlater).

Step3:OpenAndroidSDKManager

(/file/FOFJE1UHSHDS5JL/)

We'llselectthemostrecentversionalongwiththeextraSDKtoolssoyoucanbuild
applicationsforanyAndroidversion.
OpenthefolderthatweinstalledtheSDKinto.
You'llseeaexecutablecalled'SDKManager'.Openit.
You'llseeawindowwhereyoucanselectdifferentversionsofAndroidto
developfor.

Step4:InstallAndroidVersionandExtrasforSDK

HowToSetupEclipseforAndroidAppDevelopment by
im292fresh(/member/im292fresh/)
Download(/id/HowToSetupEclipseforAndroidAppDevelopment/?download=pdf)

h(/id/HowToSetupEclipseforAndroidAppDevelopment/)

13Steps

.
Collection

IMadeit!

Favorite

Share

(/file/FOHABIZHSGFXZH4/)

Selectthe'Tools'and'Android4.4.2(API19)'checkboxes.
IfyouwouldliketohaveextraAndroidtoolsyoucanchoosethemfromthe
'Extras'selection.
YouwillthenbepromptedtoaccepttheAndroidconditionsandthentheSDK
willinstall.Theninstallationmaytakeawhiledependingonyourinternet
connection.TheAndroidSDKisnowcompletelyinstalled.

Step5:ObtainEclipseIDE

(/file/FJ98398HSGFYBUC/)

Eclipseisthetoolwe'llbeusingtodevelopin.ItisthemostpopularAndroid
developmentenvironmentandhasofficiallysupportedtoolsfromGoogle.
DownloadEclipsefromthewebsitebelow.
http://www.eclipse.org/downloads/packages/eclipse...
(http://www.eclipse.org/downloads/packages/eclipsestandard432/keplersr2)
Findthelinkforyouroperatingsystemand32/64bitversion.
Savethecompresseddownloadfile.

Step6:RunEclipseforFirstTime

Step6:RunEclipseforFirstTime

(/file/FZMJ8P1HSGFYLXV/)

Eclipsedoesnotrequireinstallation.It'safolderwithallthenecessaryfilesand
settings.YoucanrunitdirectlyfromtheEclipsefolder.It'srecommendedyouputit
inasafeplacewithotherapplications.
ExtractthedownloadedEclipsefileintoasafeplacewhereyoucankeepthe
program.
Opentheextractedfolderandopenthe'eclipse'executable.
Youshouldseeascreensimilartotheoneattachedifallwentwell.

Step7:AddADTPluginRepository

(/file/F11VNPIHSHDS5SM/)

TheADT(AndroidDevelopmentTool)PluginwasmadespecificallyforEclipseto
increaseproductivityandintegrationwithyourAndroidworkenvironment.Touseit,
wefirstaddtheEclipsepluginrepositorysoitknowswheretofinditalongwith
updates.
IntheEclipseapplicationmenu,goto'Help'andthen'InstallNewSoftware'.
Clickonthe'Add...'buttonandyou'llseeawindowappear.
Givetherepositoryanamelike'ADTRepo'.
Giveitthelocationhttp://dlssl.google.com/android/eclipse/.(http://dl
ssl.google.com/android/eclipse/.)
Click'OK'button.

Step8:InstallADTPlugin

(/file/FCHUUIFHSHDS5XF/)

Nowthatwehavethepluginreposetupweneedtoinstallthepluginfromit.
Onthe'InstallSoftware'screen,selecttherepoyoujustcreatedfromthe'Work
with'selector.
Selectthe'DeveloperTools'optionfromthelistedbelowoptions.
Click'Next'andaccepttheagreements.
Click'Finish'andletitinstall.Itmighttakeawhiledependingonyourinternet
speed.

Step9:AccessADTPluginPreferences

Step9:AccessADTPluginPreferences

(/file/FFW4GU4HSHDS67B/)

You'llmostlikelyhavetorestartEclipseafteryouinstalltheADTPluginsodothat
beforeyoucontinue.
Mac/Linux:AfterEclipsehasrestarted,click'Eclipse'intheapplicationmenu.
Windows:AfterEclipsehasrestarted,click'Window'intheapplicationmenu.
Thenselect'Preferences'.
InthePreferenceswindow,selecttheAndroidtabontheleftsideandit's
correspondingdropdownmenu.
ThisistheADTPreferencesscreen.Itwillallowyoutochangesetting,removethe
SDKandmakeeditorpreferencesforyourdevelopment.

Step10:SetupADTPlugin

(/file/FC8669RHSHDS6LI/)

Click'Browse'ontherightsideofthescreen.
SearchforthefolderinwhichyouinstalledtheAndroidSDKintoandselectit.
Hitthe'Apply'buttononthePreferencesscreen.
YoushouldseetheAndroidversionyouinstalledearlytoshowupifallwent
well.
Ifnot,tryreselectingthefolder.(Makesurethefoldercontainsthefolders
'buildtools','platform','extras'andetc.
Hitthe'OK'buttonandrestartEclipse.

Step11:AccessADTAndroidVirtualDeviceManager

(/file/FWOLZB0HSHDS6S7/)

TotestyourapplicationweneedtoaddanAndroidVirtualDeviceifyoudon'thave
apersonaldevice.

apersonaldevice.
Intheapplicationmenu,select'Window'andthen'AndroidVirtualDeviceManager'
Hereyoucancreatenew'Devices'.

Step12:AddADTVirtualDevice

Clickthe'New...'buttonontherightside.
Giveyourdeviceanamein'AVDName'.
Youwanttocheckmark'UseHostGPU'
Theotheroptionsareuptoyouandcanbeplayedwithtofigureoutwhatworks
best.
Whendone,hit'OK'.

Step13:Conclusion
YouhavenowsetupanenvironmentreadytodevelopAndroidapplications.We
installedtheAndroidSDK,Eclipse,andtheADTPlugin.
Tocreateyourfirstapplication,visit
https://developer.android.com/training/basics/firs...
(https://developer.android.com/training/basics/firstapp/creatingproject.html.)

Ad

TheBiggestCodingBattle
InspiringTheIndianCodeDivas.WinTitle&Prizes
WorthRs5Lacs!
techgig.com/FemaleCodingContest

Wehaveabenicecommentpolicy.

Pleasebepositiveandconstructive.

wIMadeit!

AddImages

JianA1(/member/JianA1)

PostComment

23daysago

Reply

HEEELLLP:'(
Icantinstallthedevelopertools
'Anerroroccurredwhilecollectingitemstobeinstalled'

(http://cdn.instructables.com/F8I/FGCD/IJBPRX3A/F8IFGCDIJBPRX3A.LARGE.jpg)

itsmarkkessler(/member/itsmarkkessler)

25daysago

Reply

amonthago

Reply

SettinguptheeclipseforAndroidappdevelopmentis
challengingfornewbiewhoarelookingtobuildtheirfirst
Androidapps.Ihopethistutorialhelpstheminaneasyway..
customAndroidappdevelopment
(http://www.mobilepundits.com)

Eng_usman_riaz(/member/Eng_usman_riaz)

Ihavedownloadaudemycoursefreeaboutandroid
developmentandveryimpressiveandlearnlot.Thisisstepby
stepAndroidDevelopmenttutorials&contain95videosand
amazingwayofteaching.DownloadFreecourseathere:
AndroidDevelopmenttutorials
(http://www.come4learn.com/androidappsdevelopment
videotutorialsinurdu/)

Eng_usman_riaz(/member/Eng_usman_riaz)

amonthago

Reply

Ihavedownloadaudemycoursefreeaboutandroid
developmentandveryimpressiveandlearnlot.Thisisstepby
stepAndroidDevelopmenttutorials&contain95videosand
amazingwayofteaching.DownloadFreecourseathere:
AndroidDevelopmenttutorials
(http://www.come4learn.com/androidappsdevelopment
videotutorialsinurdu/)

Eng_usman_riaz(/member/Eng_usman_riaz)

amonthago

Ihavedownloadaudemycoursefreeaboutandroid
developmentandveryimpressiveandlearnlot.Thisisstepby
steptutorials&contain95videosandamazingwayof

Reply

steptutorials&contain95videosandamazingwayof
teaching.DownloadFreecourseathere:
http://www.come4learn.com/androidappsdevelopment
videotutorialsinurdu/

Eng_usman_riaz(/member/Eng_usman_riaz)

amonthago

Reply

Ihavedownloadaudemycoursefreeaboutandroid
developmentandveryimpressiveandlearnlot.Thisisstepby
steptutorials&contain95videosandamazingwayof
teaching.DownloadFreecourseathere:
http://www.come4learn.com/androidappsdevelopment
videotutorialsinurdu/

KarthickR9(/member/KarthickR9)

4monthsago

Reply

iaminthestep10icouldn'tfindthesdkwhereitinstalled,
pleasehelpme

AhmdR(/member/AhmdR) . KarthickR9(/member/KarthickR9)

Reply

ifyouselected"onlyforme"ininstallation,thensdkisinuser> 3monthsago
(your_username)>appdata>local>android
andifyouselected"foreveryone"thenitisinprogramfiles

RogitoD(/member/RogitoD)

3monthsago

Reply

3monthsago

Reply

4monthsago

Reply

4monthsago

Reply

5monthsago

Reply

What'swiththe"Gradlesyncfailed"error.Couldsomeone
helpmeresolvethisinandroidstudio?

PiyushP16(/member/PiyushP16)

thanksmanhelpsalot:)

rkavil(/member/rkavil)

thanksman.Veryuseful.

tejask7(/member/tejask7)

ForallthosewhoarefacingissuewiththeOKbutton,try
renamingyouAVD.Itriedtonamemine'MyPhone'andthe
OKbuttongotdisabled,Ithenrenameditto'MyPhon'andthe
OKbuttonwasenabled,don'tunderstandwhythe'e'is
causinganissue,anywaytrythissolution:)

FadwaHopefulHopesM(/member/FadwaHopefulHopesM)

thnx,veryusefullink:)
Kindlyhelp,
instep12:whenfollowingthestepsasdescribedandno
matterwhatotheroptionsIadd,the"Ok"buttonisalways
inactive....

NikolasP1(/member/NikolasP1)

ayearago

Reply

Icantclickok

FadwaHopefulHopesM(/member/FadwaHopefulHopesM) . NikolasP1
(/member/NikolasP1)

5monthsago

Reply

5monthsago

Reply

6monthsago

Reply

ayearago

Reply

metoo:(

FadwaHopefulHopesM(/member/FadwaHopefulHopesM)

thanku,veryusefullink:)
Kindlyhelp,
instep12:whenfollowingthestepsasdescribedandno
matterwhatotheroptionsIadd,the"Ok"buttonisalways
inactive....

thedevilyoudont(/member/thedevilyoudont)

GreatInstructablemyfriend.Thoughjustwantedtoletyou
knowtheperiodattheendofyourlastlinkseemsto
misdirecttoanError404page.Haveagreatoneandkeep
upthegoodwork!

LiamO1(/member/LiamO1)

IcannotruntheSDKmanager.WhenItryacommandwindow
opensbutthenclosesrightafter.Isthereanywaytofixthis?

AhmadZ3(/member/AhmadZ3) . LiamO1(/member/LiamO1)

Rightclick>RunAsAdministrator,oryoumightwanttocheck
UAC.Ifitdoesnothelp,trycleaninstall.

MichaelN21(/member/MichaelN21)

Hellothere.Instep12Iamfacingatleast2problems:
Problem1:asdescribed,thereisnobuttoncalled"New",but
insteadthereisabuttoncalled"Create"
Problem2:whenfollowingthestepsasdescribedandifIdo
notperformadditionalstepsthe"Ok"buttonisinactive.
thereforeIhadtoaddotheroptionsuntilthe"Ok"buttonwas
active.AndthisiswhatIadded:Device:GalaxyNexus
CPU/ABI:IntelAtom(x86)Skin:Noskin,thenpressed"Ok"
Problem3:aftercreatingthedeviceanerrormessage
comesupseeattachedimage.
Onemorething,IamusingaWindows8.1VirtualBoxVirtual
machineon1Windows8.1host.
Iwouldgreatlyappreciatehelptofixtheproblem.
Thankyou.

Reply

7monthsago

8monthsago

Reply

(http://cdn.instructables.com/F9A/9XBE/IB4A6JMX/F9A9XBEIB4A6JMX.LARGE.jpg)

GautamS4(/member/GautamS4) . MichaelN21(/member/MichaelN21)

Reply

7monthsago

Hey.Howdidyousolveyourproblem3?

MichaelN21(/member/MichaelN21) . GautamS4(/member/GautamS4)

HelloGautamS4:
IusedGoogletolookforthetextthatwasintheerrormessage.

Reply

7monthsago

andhereisoneofthelinksthatwasprovidedasananswerfor
thisproblem:
http://stackoverflow.com/questions/18402913/errorparsingc
documentsandsettingsuserandroiddevicesxml
Goodluckandhaveagreatweekend.

GautamS4(/member/GautamS4) . MichaelN21(/member/MichaelN21)

Reply

7monthsago

HelloMichael.
IhopeIwillbedonewiththatproblem.Iwouldalsoliketoknow
itfromyou,howmuchspacedoesyour'Android'foldereatsup
ofyourCdrive?Anddoesthat'Android'folderhas'System
Images'folderinit?

MichaelN21(/member/MichaelN21) . GautamS4(/member/GautamS4)

Reply

7monthsago

HelloMichaelN21,
TheAndroidfolderisconsuming435MBonCDriveandover
5GBonexternaldrive,thatincludingEclipse,AndroidStudio,
projects,notesandtutorials.Alsoadditional7GBAndroid
relatedinstallationsondriveC.Idonothaveafoldercalled
"SystemImages".
Ihopethishelped.
Regards

GautamS4(/member/GautamS4)

7monthsago

Reply

8monthsago

Reply

Iwasinstep4.IcheckedinwithAndroid5.1.1anditasked
toinstall31packages.WhenItriedinstallingit,itconsumed
3GBinternetdata.NowtheandroidfolderinCdrivetakes
up21GB.Kindlyhelp

MichaelN21(/member/MichaelN21)

HelloThere.Thankyoufortheverynicetutorial.Asmall
minortypeisfoundattheendofthetutorialunderstep13,
whichisthehiddenlinkcontainsa"."dot/periodattheend,

whichisthehiddenlinkcontainsa"."dot/periodattheend,
whichcausesawrongpage.ifyoutakethe"."out,thenitwill
beok.
Haveagreatsummer2015,andincasewedon'tseeeach
other,thenhavealsoagreatyear2016,17......

daz_aryan(/member/daz_aryan)

8monthsago

Reply

9monthsago

Reply

10monthsago

Reply

11monthsago

Reply

Younicelyexplainedthis.ButIfoundonemistake,change
theADTrepoURLto
https://dlssl.google.com/android/eclipse/
(http://dlssl.google.com/android/eclipse/)

sroi(/member/sroi)

thq..mademyworkeasier

dev_patel125(/member/dev_patel125)

ReallyInformative&HelpfulpostforBiggner....

harsha_empire(/member/harsha_empire)

GreatTutorial!!
Thanksforsharing!!!

FEATURED CHANNELS

HomeRepair
Knitting
(/tag/type
Survival
Breakfast
Minecraft
(/tag/type
USB
Comics
id/category
(/tag/type
(/tag/type
(/tag/type
id/category
(/tag/type
(/tag/type
workshop/channel id/category
id/category
id/category
craft/channel
id/category
id/category
WinterDrinks
home
outside/channel food/channel
play/channel
knittingand technology/channel
costumes/channel (/id/Holiday
Weddings
Newsletter
improvement/)
survival/)
breakfast/)
minecraft/)
crocheting/)
usb/)

comics/)

Drinks/)
(/howto/weddings/)
Join2million+toreceiveinstant
inspirationinyourinbox.
enteremail

I'min!

Mobile
Downloadourapps!
Android(https://play.google.com/store/apps/details?id=com.adsk.instructables)
iOS(https://itunes.apple.com/app/instructables/id586765571)
Windows(http://apps.microsoft.com/windows/enus/app/7afc8194c771441a959054250d6a8300)

AboutUs

FindUs

WhoWeAre(/about/)

Facebook(http://www.facebook.com/instructables)

Advertise(/advertise/)

Youtube(http://www.youtube.com/user/instructablestv)

Contact(/about/contact.jsp)

Twitter(http://www.twitter.com/instructables)

Jobs(/community/PositionsavailableatInstructables/)
Help(/id/howtowriteagreatinstructable/)

Pinterest(http://www.pinterest.com/instructables)
Google+(https://plus.google.com/+instructables)
Tumblr(http://instructables.tumblr.com)

Resources
ForTeachers(/teachers/)
ArtistsinResidence(/air)
GiftProAccount(/account/give?sourcea=footer)
Forums(/community/)
Answers(/tag/typequestion/?sort=RECENT)
Sitemap(/sitemap/)

TermsofService(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |
PrivacyStatement(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
LegalNotices&Trademarks(http://usa.autodesk.com/legalnoticestrademarks/) | MobileSite(http://m.instructables.com)
(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)
2015Autodesk,Inc.

Você também pode gostar