版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、全程,M示android開發(fā)環(huán)境的搭建過程,無需配置環(huán)境變量。所有軟件都是寫該文章時最新版本一相關(guān)下載javaJDK下載:進(jìn)入該網(wǎng)頁:DownkiadJDKJDK6Update19(JDKorJRE)ThisreleasecontainscriticalsecurityupdatestotheJavaruntime.Pleaseupdatenowtotakeadvantageoftheseenhancements.nLearnmoreWhatJavaDoIHeed?YoumusthaveacopyoftheJRE(JavaRuntimeEnvironment)onyoursystemtorun
2、Javaapplicationsandapplets.TodevelopJavaapplicationsandapplets,youneedtheJOK(JavaDevelopmentKit):whichincludestheJRENOTETheFirefox3,6browserrequiresJavaSE6Update10orlater.Otherv;ise.JavabasedwebapplicationswillnetwoK選才?DownloadJDK只下載JDK,無需下載jre.(2)eclipse下載進(jìn)入該網(wǎng)頁:/downloads/(或者直接
3、點擊下載:BT下載HTTP下載)如下圖:EclipsePackagesProjectsDevelopmentBuildsGalileoPackages(basedonEclipse3.5SR2)-ComparePackagesEclipseIDEforJavaEEDevelopers(190MB)ToolsforJavadeweloperscreatingJa'3EEandwedapplications,inefudingaJavaIDE.toolsforJavaEE,JPA,JSF.Llylynandothers.More,Downloads868,089EcltpseIDEforJ
4、avaDevelopers(92MB)Theessentialtootsforan/Javadeveloper,includingaJavaIDE,aCVSdientXMLEditorandMylynMore.«Downloads:298,541EcitpseIDEforC/C+Developers(79MB)AnIDEforC/C+developerswithMylynintegration.More.Downloads:130,736EclipseforPHPDevelopers(139MB)ToolsforPHPdeveloperscreating.'/ebapplic
5、ations,includingPHPDevelopmentTools(PDT),WebToolsPlatform.My5ynandothersMore.,Downloads:103,015Windows32bMacCarbon:MacCocoa3:Linux32bHtWindows32bMacCarbon:MacCocoa3;Linux32bittWindows32bLlacCarbon.MacCocoa3;Linux32btt1:;indows3.2bMacCarbon;MacCocoa3:Linux32bit(我們選擇第一個(即eclipseIDEforjavaEEDevelopers)
6、(3)下載AndroidSDK說明:AndroidSDK兩種下載版本,一種是包含具體版本的SDK的,一種是只有升級工具,而不包含具體的SDK版本,后一種大概20多M,前一種70多M。完全版下載(androidsdk2.1r01)升級版下載(建議使用這個,本例子就是使用這個這里面不包含具體版本,想要什么版本在Eclipse里面升級就行)二軟件安裝(1)安裝jdk6u19安裝完成即可,無需配置環(huán)境變量(2)解壓eclipseeclipse無需安裝,解壓后,直接打開就行(3)解壓androidsdk這個也無需安裝,解壓后供后面使用(4)最終有三個文件夾,如下圖:沮毀包含到庫干*共享新建文件去計算機(jī)j
7、本地過近(F:j*Android導(dǎo)下我莫固.最近訪問的福修改日期會2010/4/312:13文件夾2010/4/312:12文件夾2010/4/219:16應(yīng)用程序名稱ndroid-sdk_r04-windows&clipse-jee-galileQ-SR2'Win32lzipI_ijdk'6ul9"windcw£-i586.exeH頓上圖片Si玨圃迅雷下載音樂禽家庭組計算機(jī)二windows7(C0(D:)l聞programanc.本地磅盅(F:)本院盅(GO開發(fā)與學(xué)習(xí)(1:家擔(dān)理樂(上本(K:)Roaming3個對象Eclipse配置1安裝andr
8、oid開發(fā)插件打開Eclipse,在菜單欄上選擇help-InstallNewSoftware出現(xiàn)如下界面:AvaHablleSoftwareSelectasiteorenterthelocationofasite.peorselect鰭sit£Findmoresoftwarebyworkingwiththe-Yai-typefiftertextNameVersion(jJThereisnositeselected.DetailsJ.ShowonlythelatestversionsofavailablesoftwareHideitemsthatarealreadyinstalled
9、HGroupitemsbycategoryWhatisalreadyinsWHed?7Contact石IIupdatesitesduringinstalltofindrequiredsoftwareLocal.Archive-1.OKCancel匐AddSiteName:AndroidLocationshttps:/dl-ssf,googlexam/android/edipse/(如果出錯,請將https改成輸入網(wǎng)址:https:/dl-名稱:Android(這里可以自定義)點擊OK,將出現(xiàn)如下界面圖Install4AvailableSoftwareCheckth?itemsthatyouwi
10、shtoJnstalLWorkwith:Androfd-https:/dl-ssl,google,ccm/android/eclipse/FindmoresoftwarebyworkingwiththeUi/ailabletypefiftertextNameVerstonV|UOl.DeveloperTools目相AndroidDDMS0.9.6.v201002051504-24846'J布AndroidDevelopmentTool0.9.5.v201002051504-24846DetailsJ.Showonlythelatestversionsofavailablesoftwar
11、eHideitemsthatarealreadyinstalled/GroupitemsbycategoryWhatis日丘氧丫innWiled?4Contactallupdatesitesduringinstalltofindrequiredsoftware(2)1-Ea.k:Next-1InstallDetailsReviewtheitemstobeinstalled.NameVersfonId&AndroidDDMS-v.AndroidDevelopmentTools0.9.6.v2.,.com.android.tdeeclipseddms.fe3ture.,.0.9h6,v2,
12、com,android.Ede.eclipse.dt,featjreHgr,Size:UnknownDetailsNext>InstallJ-4-ReviewLicensesLcensesmustbereviewedbeforethesoftwarecanbejnstatled.Thisincludesicensesforsoftvarerequiredtoinstall.HemswithEicenses:Licensetert:NameVersionNote:jcommon-1.0.12jarisundei|工,tr.c)上thantheAPLYoucanfindacopyv-Andr
13、oidDDMS0.9.6.v201002051504-24846AndroidDevelopmentTools“MylynBridgerEclipseIDE4.MyiynBridge;JavaDeveopment4:MylynBridgetTeamSupport,;MylynConnector:Bugwill日MylynTaskList(Required)<MylynTask-FocusedInterface(Rec».MylynWikiText0,9.6x201002051504-243433J.v2010033(-0100-e3x3.3.3.v201Q0330-0100-e
14、3x3.3.3.v20100330-0100-e3x3.3.3.v201003300100e3x3,33.v20100330*0100-e3x33.3.V2O1OO330-0100-e3x1.2.1.v20100222-0100-e3x/hcensfjfreechart-l.O,S.jarandjfreechar!theLGPLratherthantheAPLYouLGPL3t卜壯p:/www.9r1工口9,1k2口5£ZLtxtYoucangetthesourcecc(componentsathttp/arrdroid,grtkeme
15、lx>rg/pub/JApacheLicenseVersEon2.0rJanhttpt/www,apach(TERMSANDCONDHIONSFORANDD1STRIBUHON1.Definitions.IacceptthetermsofthelicenseO'I立口notacceptthetermsoftht<EatkNextA點擊Next,進(jìn)入安裝插件界面選擇Iacceptthetermsofthelicenseagreements安裝完成后,出現(xiàn)如下界面點擊Yes按鈕,重啟Eclipse2配置androidsdk(1)點擊菜單window->preference
16、s,進(jìn)入如下界面國PreferencestypefiltertextGeneralAndroidBuildDDMSLaunchLogCatUsageStatsAntDataManagementHelpnstall/UpdateJavaJavaEEPlug-inDevelopmentRemoteSystemsAndroid爛(*AndroidPreferencesSDKLocation:F:AndroidandrcId-dk_r04'window5androSd-sBrowse.,Note:ThelistofSDKTargetsbelowisonlyreloadedonceyouhit&
17、#39;Apply1or'OKTargetNameVendorPJatformAPI.-*NotargetavailableRun/DebugServerTasksTeamTermindfUsageDataCoilectornrRestoreDefaultsApplyCancel選擇彳的androidSDK解壓后的目錄,選錯了就會報錯,這個是升級工具,目前還沒有一個版本的SDK(2)升級SDK版本,選擇菜單window->Androidsdkandavdmanager出現(xiàn)如下界面西AndroidSDKandAVDManagerVirtualDevice?InstalledPack
18、agesSDKLocation:F:Androidandraid-sdk_r04-windowsandroid-sdk-windowsAvailablePackagesInstalledPackagesAndroidSDKTools,revtsion4DescriptionUpdateAll.選才Iupdateall按鈕,出現(xiàn)如下界面ChoosePackagestoInstallPackagesXAndroidSDKToolSjrevision5*7SDKPlatformAndroid2.1,API7,re.5SamplesforSDKAPI7,revision1tXGoogleAPIsbyG
19、oogleInc,Android.XSDKPlatformAndroid2,CA,API6一XGoogleAPkbyGoogleIncAndro!,XSDKPlatformAndroid2QAPI5,re.,XGoogleAPI與byGoogleInc.,Androi.XSDKPlatformAndroid16Api4PackageDesertptton&LicenseAndroidSDKTools,revision5Thisupdatewillreplacerevision4withrevision5.-rchivDu£tri|rtk>nArchiveforWindo
20、wsSize22MiBSHA1:lad4K)3aci2637bfecB5bb45cflcl623c33127d53Accepto)jRejerf1Act嚀?arnethingdependson廿岳p.uk.geinstallCa選擇左邊的某一項,點擊accept表示安裝,點擊reject表示不安裝,我這里只選了SDK2.1和samplesforapi7,自己可以任意自定義,確定后,選才Iinstall按鈕,進(jìn)入安裝界面如下-n5tallingArchivesDownloadingSDKPlatformAndroid2.1,API7,revision1(18%.642KjB/s,99second
21、sleft)DownloadingSDKPlatformAndroid2.1,API7trevision1安裝完成如下InstillingArchivesDone.2packagesinstalled.DownloadtngSDKPlatformAndroid2.1,API7.reyjsion1fnstallingSDKPlatfonnAndroid2.1,API7,revision1InstalledSDKPlatformAndroid2A,API1,revision1DownloadingSamplesforSDKAPI7Prevision1InstallingSamplerforSDKA
22、PI7,revision1InstalledSamplesforSDKAPI7,revision1(3)新建AVD(androidvituraldevice)和上面樣,進(jìn)入androidsdkandavdmanager,選中VituralDevices在點擊New按鈕r""nAndroidSDKandAVDManager=I1VirtualDevices1ListofexistingAndroidVirtualDevices:AVDNameTargetNameInstalledPackagesAvailablePackagesPlatformAPILevel"No
23、AVDavailable一-1II11II7AvalidAndroidVirtualDevice,XAnAndroidVirtualDevicethatfailedtoload.Click'Details4toseeth?error.L點擊New按鈕后,進(jìn)入如下界面CreatenewAVD名稱可以隨便取,target選擇你需要的SDK版本,SD卡大小自定義,點擊CreateAVD,得到如下結(jié)果回AndroidVirtualDevicesManagerReuHofcreatingAVD'AVD2.11:CreatedAVD'AVD2.11basedonAndroid2.1
24、,withthefollowinghardwareconfig;hw.led.density=160如上顯示創(chuàng)建AVD完畢3新建Android項目選擇菜單方le->new->other進(jìn)入如下界面£New1回ITUSelectawizardWizards:typefiltertext瘠JavaProjectfromExistingAntBuildFtle孕Plug-inProject>General/四Android也AndroidProjectAndroidTestProject/AndroidXMLFile、£>ConnectionProfile
25、st>CVSIEclipseModelingFrameworkBaNext>FinishCancel選擇新建AndroidProject項目,點擊Next按鈕,進(jìn)入如下界面minSDKversion里面必須輸名稱自定義,應(yīng)用程序名自定義,報名必須包含一個點以上,入整數(shù)點擊Next出現(xiàn)如下界面國Java-AndroidTest/gen/Android/Test/R.javaFileEditRefactorRunSourceNavigateSearchProjectWindowHelp房PackageE&HierarchyER.javaAUTO-GENERATEDFILE.DO
26、NOTMODIFY.,日AndroidTest,srct>國Android2.1gentGeneratedJavaFilesassetsresAndroidManifest.xml國defaultpropertiesAndroidTestpackageAndroid.Test;publicfinalclassRpublicstaticfinalclassattr)publicstaticfinalclassdrawablepublicstaticfinalintIcon=0x7f020000;)publicstaticfinalclasslayoutpublicstaticfinalin
27、tmain=0x7f030000;)publicstaticfinalclassstringpoblicstaticfinalintapp_nazne=0x7f04Qpublicstaticfinalinthe21o=0x7f040000)18?Problems5JavadocDedaration1曰ConsoleAndroid2010-04-0313:06:17-AndroxdTescR.javawasremo注:若有錯誤如:Project.ismissingrequiredsourcefolder:'gen',貝U將gen->Android.Test->R.ja
28、va這個文件刪掉,Eclipse會為我們重新生成這個文件,并且不會報錯。配置運(yùn)行右鍵項目->Runas->RunConfiguration進(jìn)入如下界面:Create,managerandrunconfigurationsAndroidApplicationName:New_configurationLJAndroidTarget-Ccn'irricnProject:AndroidTestLaunchActionsQLaunchDefaultActivityLaunch:DoNothingX月募,typefiltertext商AndroidApplication巧New_con_igurationJ。AndroidJUnrtTestApacheTomcat與EclipseApplicationt4EclipseDataTools§GenericServerGenericServer(Extern.HTTPPreview3J2EEPreview甌JavaApplet宣JavaAppEicabonJuJUnitJ,JUnitPlug-rnTest+OSGjFrameworkJrTaskContextTestXXSL看一巾一上Filtermatched17of17itemsRun該界面,點擊Browse按鈕,選擇
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 狼獲獎?wù)n件教學(xué)課件
- 統(tǒng)計分析軟件模擬試題三及答案
- 飛向太空的航程說課稿
- 隊列口令說課稿
- 適合小班課件教學(xué)課件
- 怎樣評價課件教學(xué)課件
- 南京工業(yè)大學(xué)浦江學(xué)院《公益營銷》2021-2022學(xué)年第一學(xué)期期末試卷
- 南京工業(yè)大學(xué)浦江學(xué)院《籌資原理和技巧》2022-2023學(xué)年第一學(xué)期期末試卷
- 秸稈打捆協(xié)議書(2篇)
- 南京工業(yè)大學(xué)《應(yīng)用統(tǒng)計學(xué)》2023-2024學(xué)年第一學(xué)期期末試卷
- 豎井井架安裝安全技術(shù)措施
- 無縫線路鋪設(shè)與養(yǎng)護(hù)維修方法
- 高分子物理教案(Word)
- 豆綠色時尚風(fēng)送貨單excel模板
- 新蘇教版五年級上冊科學(xué)全冊教學(xué)課件(2022年春整理)
- 小學(xué)體育水平一《走與游戲》教學(xué)設(shè)計
- 秋日私語(完整精確版)克萊德曼(原版)鋼琴雙手簡譜 鋼琴譜
- 鹽酸安全知識培訓(xùn)
- 萬盛關(guān)于成立醫(yī)療設(shè)備公司組建方案(參考模板)
- 科技特派員工作調(diào)研報告
- 中波廣播發(fā)送系統(tǒng)概述
評論
0/150
提交評論