您的位置:首页 > 产品设计 > UI/UE

how to build a android environment in ubuntu 15.10

2016-03-10 11:00 495 查看
Asweknow,theandroiddevelopmentenvironmentneedfourpart:JDKSDKIDEADT.Problems:thereareJDKversionsfromdifferentcompanise.Previous,Irunthecommand:$sudoapt-getinstallopenjdk-7-jdktoinstallopenjdkreleasedbyubuntu,andthen,installingtheeclipseIDE,$sudoapt-getinstalleclipse-platformComingnextisinstallingtheSDKfromofficialwebsite,alliswell,thetroublesomeoccurredwhenIwenttoinstalledADTandcreatedanewproject.so,Idon'tsupporttouseopenjdk.Solution:1、TheJdkinstalledfromoracle:
$sudoadd-apt-repositoryppa:webupd8team/java
$sudoapt-getupdate
$sudoapt-getinstalloracle-java8-installer

anddon'tcofigueanyenvironmentvariables。
moreinformation:http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html[/code]
thecommandtoruntestJDKisinstalledcorrectly$java-version2、installingtheeclipseeclipsevesion(EclipseIDEforJavaDevelopers)wasdownloadfromhttp://www.eclipse.org/downloads/index-developer.php
andclickeclipse.exeandeclipsewillbestart.3、installingtheSDK(http://developer.android.com/sdk/index.html)choosingthestand-alonesdktools,ImovethesdkfromDownloadsfileto/opt/Java$sudomv/Download/下载包名/opt/Java$cd/opt/Java$sudounzip./下载包名addenvironmentpathtofile:$sudogedit/etc/profileaddingthefollowingcontentintheend:exportANDROID_HOME=/opt/Java/android-sdk-linux
exportPATH=$ANDROID_HOME/tools:$PATH
exportPATH=$ANDROID_HOME/platform-tools:$PATHnext,testinginstallingSDK$androidthewindowwillbeopenandcanchoosewhattheversionyouneedinstall.andURL:http://mirrors.neusoft.edu.cnsort:80moreinformation:http://ask.android-studio.org/?/article/344、InstallingtheADT:installingsdk4.2.2,andIchoosetheADTversionis23.TheinformationoccurredbyrunprojectnotethattheADTversionneedupdatewhenIinstallingADT17downloadtheADTformwebsite.andstarteclipseclickHelp->installnewsoftware...thefirsteditforminputnameandsecondisADTpath(clickachivetoaddADTfilepath)restarteclipsetoaddsdk(window->preference,clickandroidandchooseandroidversion)alliswell,createanewproject,rightclicktheprojecttochooseRunastodisplyaytheresult.


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: