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:
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.
$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(
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:
相关文章推荐
- POJ 2533 Longest Ordered Subsequence(最长上升子序列)
- 探讨Android更新UI的几种方法
- vue+webpack学习记录
- java集合类深入分析之Queue篇(Q,DQ)
- 从源代码的角度聊聊java中StringBuffer、StringBuilder、String中的字符串拼接
- @RequestBody, @ResponseBody 注解详解
- Leetcode:225. Implement Stack using Queues(JAVA)
- 实时显示iOS编写UI代码效果
- queue —— 队列使用示例
- HDU 4126 Genghis Khan the Conqueror 类似于4756的树形DP
- StringBuilder StringBuffer String的区别(源码分析)-java
- UITextField监听文本的时时改变和字数限制
- UIAlertController使用
- UITextField 对键盘一些常用属性 记录一下
- leetcode:N-Queens II
- JS模块化开发(requireJS)
- 232. Implement Queue using Stacks
- Android stduio 导入.9图片的问题
- 在键盘上方添加UIToolbar
- BACnet WHO-IS服务协议栈代码分析(2) ------ whois_decode_service_request(....)函数