Install Android SDK in Ubuntu

Ubuntu环境下下载Android-SDK-Linux之后使用adb连接设备报错 Ubuntu环境下配置AndroidSDK-linux环境 阅读详情

 

 

1.      在vmware中安装Linux (Ubuntu)

2.      把Linux的某个目录共享给Windows

a)       apt-get install samba smbfs

b)       vi /etc/samba/smb.conf, 添加:

                     i.            [share_to_window]

                   ii.                    comment = Directory

                  iii.                    path = /linux/share

                  iv.                    browseable = yes

                   v.                    writeable = yes

                  vi.                   create mask = 644

                vii.                   directory mask = 755

 

c)       smbpasswd -a root

 

 

 

web上的资源:

转自www.Androidin.com,我改了一点点。。。

一般而言,作为一个linux使用者,我是很忌讳用源里的东西的,更新慢、拥有root权限不说,而且我也不太信任源。

1.
直接从www.sun.com下载最新的JAVASE稳定版本JDK 6 Update7

2.
直接从www.eclipse.org下载最新的Eclipse版本Eclipse IDE for Java Developers,85M那个,其他的Android也用不着。

3.
直接从http://code.google.com/android/download_list.html下载最新的Android SDK1.1(打不开的可以用代理或者在网上搜一下)

4.
安装android的eclipse插件,这个具体步骤在http://code.google.com/android/i ... ml#installingplugin上有。不过有个地方需要说明下:在在线安装Eclipse 3.4 (Ganymede)的插件安装方法中,给出的地址可能有问题,如果按照教程上的不行,则更改为http://dl-ssl.google.com/android/eclipse/

5.
解压缩JDK、Android SDK和eclipse到一个文件夹下,我就喜欢放在 ~/local/ 这个目录下。追求细节上完美的玩家可以自行配置JAVA_HOME、ln -S等,这里就没必要罗嗦了

6.
启动Eclipse,window -> Preferences -> android -> SDK Location,在这里指定Android SDK的目录就大功告成了。



个人提示:Eclipse虽然很强大,但是从个人角度还是推荐不要所有功能都集中在一个Eclipse中完成,分成几个独立的Eclipse来安装不同的 插件是一个不错的选择。这样可以避免插件之间、插件Eclipse版本的冲突,也可以避免一个非常SUCK的情况:Android for Eclipse的插件有内存泄漏!这实在是..实在是太SUCK了

 

 

我的步骤:

 

Step 1: 下载一些东西:

 

JDK 6 Update 7:

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter

 

Eclipse:

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR2/eclipse-java-ganymede-SR2-linux-gtk.tar.gz

 

Android SDK 1.5:

http://www.android123.com.cn/sdkxiazai/289.html

http://dl.google.com/android/android-sdk-linux_x86-1.5_pre.zip

 

 

 

国外一个比较详细的步骤:

http://androidforums.com/developer-101/2321-installing-eclipse-android-sdk-ubuntu-8-04-8-10-a.html

 

Note: In this tutorial, I'm using Xubuntu 8.04. These steps are the same for Ubuntu and Kubuntu as well. They're also the exact same for [Xu|Ku|U]buntu 8.10.

The first thing we need to do is download all of the needed files. First up, the Android SDK. You can download it from http://code.google.com/android/download.html

We're also going to need Eclipse. Head over to http://www.eclipse.org/downloads/. The version we want is Eclipse IDE for Java Developers. The JEE version will work as well.



Next, we're going to need Java. Bring up a terminal window (Applications -> Accessories -> Terminal). We can install it using apt, by running...

sudo apt-get install sun-java6-bin



(If you're using a 64 bit distribution, you'll also need to install the ia32-libs as well)

Once it's done downloading the files, it will prompt you about the license.



Press tab, and then enter. It will tell you that you have to accept the license to continue, and then prompt you again. Select yes, and press enter to continue.



Now that Java is installed, we can get started on Eclipse. First, let's untar/gzip Eclipse. In our terminal window...

cd ~/Desktop

And then untar/gzip the file.

tar xvfz eclipse-jee-ganymede-SR1-linux-gtk.tar.gz



Finally, move it into your home folder.

mv eclipse ~



Now, if you want to add eclipse to your menu, right click on Applications and Edit Menu. Click on Programming, and then click New Item. Type in the name, and the full location to Eclipse (/home/yourusername/eclipse/eclipse), and finally, click OK.

Personally, I just made a launcher for it on my Desktop.



Now, let's extract the Android SDK. Back in the terminal again...

unzip android-sdk-linux_x86-1.0_r1.zip



Let's move the resulting folder into our home folder.

mv android-sdk-linux_x86-1.0_r1/ ~



Now, this is the single most important step. Without this, we'll encounter all sorts of odd problems later. Open up your ~/.bashrc in your favorite editor (because I'm doing this in Xubuntu, I'm using mousepad. You can use whatever you'd like.)

sudo mousepad ~/.bashrc

And we're going to add the following at the bottom of the file (making sure you replace yourusername with your actual username.)

export PATH=${PATH}:/home/yourusername/android-sdk-linux_x86-1.0_r1/tools



Save the changes, and exit your editor. Now, we can start up Eclipse.

Eclipse will prompt you to choose a workspace location.



This is where all of your project files will be stored. Set it where you want, and click OK.

Once Eclipse is started up, we can add the ADT plugin. In the menu, Help -> Software Updates.



Click on the Available Software tab, and then Add Site. For the location, we're going to enter http://dl-ssl.google.com/android/eclipse/



And click OK. Eclipse will go find the list of available software, and update your list.



Click the checkbox next to the Location we just added to select all of the software, and click Install.



Eclipse will calculate all of the requirements and download the needed files. Then you'll be greeted by the Install window.



Click Next to install the selected tools. You'll be asked to agree to the license.



Accept the license agreement, and then click Finish. Eclipse will install everything...



...And then will prompt you to restart, click Yes. Eclipse will restart.

The last thing we need to do is point the ADT plugin to our Android SDK folder. In the top menu, go to Window -> Preferences, and then click on the Android tab.



Click Browse, choose the Android SDK folder, and then click OK. Now click Apply and let Eclipse crunch on it for a second or two.



And click OK. You're finished!

To run a quick test and make sure everything is working properly, go to File -> New -> Project. Expand Android, click on Android Project, and click Next.



Now we'll have to fill in our project information. Because this is a test run, we'll call the project testrun. For the package name, we'll use com.android.test. And last but not least, the activity name will be test.



Click Finish.

Eclipse will crunch on that for a second, and open the project in the left pane. Expand the main tree to see the file structure of a default new project. The last thing we need to do before we run our test application is set up a run configuration. In the menu, go to Run -> Run Configurations...

Double click on Android Application and it will create a new configuration. Give the configuration a name, and click browse for the project.



Choose your project, click OK. Now click Apply, then Run.

You'll notice the bottom pane switches over to Console. This will let you know what's going on with the emulator. After a few seconds, the emulator will start up.



Note that the first run will take *much* longer than usual to start up, as it's setting up the Android OS while it starts up for the first time. Depending on the specs of your computer, it can take anywhere from a few minutes to over half an hour.

After awhile, you'll arrive at the starting screen. Usually, you'll get a few errors as things start up and can't be started.



I usually just click wait. In the console, you'll see it install, and then start up your application.





And with that, it's time for you to dive into the code and start making your application.

 

 

另外一个比较详细的:

http://www.howtoforge.com/installing-google-android-sdk1.0-on-ubuntu8.04-desktop

 

 

安装jdk:

Linux(ubuntu8.04 LST)环境下安装JDK6

Linux(ubuntu8.04 LST)环境下安装JDK6

1
、下载

   jdk-6u7-linux-i586.bin
2
、修改可执行权限

   chmod 744 jdk-6u7-linux-i586.bin
3
、执行

   ./jdk-6u7-linux-i586.bin
    
本步骤执行之后,会在当前目录下产生一个jdk1.6.0_07目录

4
、在/usr/local下创建一个jdk6目录

   cd /usr/local & sudo mkdir jdk6
5
、将前面jdk1.6.0_07中的内容复制到jdk6目录下

   sudo cp -R /home/guandl/installs/jdk1.6.0_07/* .
6
、设置环境变量

在 /etc/profile文件末尾增加一下内容

export JAVA_HOME=/usr/local/jdk6
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin

注意:如果jdk只安装给某个用户使用

首先,把安装的目录改到个人目录下,

然后,通过修改该用户的环境配置文件来设置上面的环境变量,如下面的两个文件之一

/home/anyuser/.bashrc
/home/anyuser/.profile

7
、退出重新登录之后,测试安装是否成功

$ echo $JAVA_HOME
$ echo $CLASSPATH
$ echo $PATH
$ java -version
如果都正常,安装成功

 

 

android-1.1_r1-linux.zip android-1.1,有点旧了喜欢演技的朋友可以下载来看看。 立即下载

相关推荐

健康保险费用预测:可解释机器学习在精算建模中的实战落地

健康保险费用预测是医疗AI与保险科技交叉领域的核心任务,本质是基于临床变量与社会因素对个体医疗支出进行风险量化。其技术原理需兼顾统计建模能力与监管可解释性,XGBoost+SHAP组合因支持特征归因、边际效应分析和临床可干预推演,成为保险精算场景的主流选择。该技术显著提升保费定价精度、降低偿付风险,并支撑DRG费用预警、团险核保辅助及再保险尾部风险评估等关键应用。本文聚焦真实产线中的时间序列验证、临床分层特征工程与监管红线指标(如Bias@90th、Calibration Slope),深入解析如何让模型不

weixin_33702545的博客 313

在Ubuntu上安装Android-SDK的方法

一、安装和配置Ubuntu系统1. 安装Ubuntu Desktop 14.04 x86_642. 启用root账户Ubuntu 14.04默认是不允许root账户登录的,在登录窗口只能看到普通用户和访客登录。在shell中运行以下命令即可启用root账户登录:Step-1. 切换至root账户权限模式,需要输入当前普通用户的登录密码sudo -sStep-2. 启用root账户登录vi /usr...

YZXnuaa的博客 8751

A robust and easy to implement method for IMU calibration without external equipments(IMU标定)

A robust and easy to implement method for IMU calibration without external equipments 1 标定原理1 亲试可用,还有动态演示效果不错。相比商用产品的简易标定流程,该标定方法有以下几点不同: 给出了加速度计和陀螺仪更复杂的模型。 利用Allan方差的定义,标定陀螺仪的偏置。 大量冗余数据,保证最优化收敛。利用数十...

擦擦擦大侠的博客 3953

Ubuntu下安装配置Android SDK

http://blog.csdn.net/gavin_dinggengjia/article/details/7364924 环境: Ubuntu 10.04 步骤: 1、安装Eclipse,详见http://blog.csdn.net/gavin_dinggengjia/article/details/7364375 2、下载Android SDK 官网http://develo

duhaomin的专栏 3502

TMC2209的UART模式详解:如何用串口调试助手配置细分和电流(避坑指南)

本文深入解析TMC2209步进电机驱动器的UART模式,详细讲解如何通过串口调试助手配置细分和电流,包括硬件连接、通信协议、关键寄存器设置及高级功能应用。提供实战避坑指南,帮助开发者优化步进电机控制性能,适用于精密仪器、3D打印等场景。

weixin_29166013的博客 546

Cadence 17.2配置CIS数据库报错?手把手解决ODBC驱动位数不匹配问题

本文详细解析了Cadence 17.2配置CIS数据库时常见的ODBC驱动位数不匹配问题,提供了从系统环境检查到分步解决方案的完整指南。重点解决32位应用程序与64位ODBC驱动之间的架构冲突,包含驱动安装、DSN配置及高级排查技巧,帮助电子工程师快速恢复设计环境。

play7的博客 983

Ubuntu安装Android SDK

ubuntu安装配置android SDK

codemaster1024的博客 5356

【技术实践指南】Python解析FactSet Revere供应链数据:构建企业级断裂与重构监测指标

本文提供了一份企业级Python实践指南,详细解析如何利用FactSet Revere供应链数据库,构建供应链断裂与重构监测指标。内容涵盖数据清洗、关系对筛选、时间序列处理及核心指标(断裂、恢复、转移)的工程化实现,旨在帮助数据工程师与分析师搭建自动化、可解释的供应链风险监控系统。

weixin_29051811的博客 972

在Ubuntu上安装与配置Android Studio及安卓模拟器教程

本文详细介绍了如何在Ubuntu系统中安装和配置Android Studio,并利用其自带的安卓模拟器进行应用开发与测试。内容涵盖从安装软件、配置SDK,到创建虚拟设备、运行模拟器,再到在模拟器中调试和验证应用的完整流程,适合初学者快速上手安卓开发。

思绪无限的博客 2万+

量子密钥分发(QKD)原理、工程实现与实战部署全解析

密钥分发是信息安全的核心基础,它解决了通信双方如何安全共享秘密密钥的难题。传统方法依赖于数学问题的计算复杂性,而量子密钥分发(QKD)则基于量子力学原理,为密钥分发提供了信息论安全的物理保障。其核心价值在于,利用量子不可克隆定理和测量坍缩原理,使得任何窃听行为都会被合法通信方检测到,从而在理论上实现无条件安全的密钥协商。这项技术特别适用于对安全性要求极高的场景,如金融数据同步、政务专网和电力系统保护。本文聚焦于量子保密通信,深入剖析了以BB84协议为代表的QKD工作原理,并详细拆解了包含单光子探测、偏振编码

weixin_29324401的博客 361

基于机器学习的电视剧类型点击量数据分析研究

1. 背景介绍 1.1 流媒体平台的兴起与电视剧市场的繁荣 近年来,随着互联网技术的飞速发展,流媒体平台如Netflix、Disney+、腾讯视频等迅速崛起,成为人们观看影视内容的主要渠道。电视剧作为流媒体平台上的重要内容类型,其点击量数据蕴含着丰富的用户偏好和市场趋势信息。

AI天才研究院 1056

Linux : ubuntu 安装Android SDK

1、下载Android SDK 官网链接:https://developer.android.com/studio#downloads 镜像链接:http://www.android-studio.org/index.php/download/hisversion 2、安装SDK和环境变量配置 unzip sdk-tools-linux-4333796.zip cd /opt/ sudo mkdir android cd android sudo mkdir sdk sudo mv tools/ /opt/

sunzhanl的博客 1万+

Darknet-Yolov3 移植过程

本教程面向使用寒武纪平台进行深度学习推理任务的开发者。针对当前主流检测网络darknet-yolov3,进行寒武纪平台的移植。开发者对照移植过程,能够利用寒武纪智能处理器设备完成多种场景的目标检测任务。本实验代码基于 Neuware 1.6.1 与 Python 2.7 环境。

shengyin714959的博客 446

android sdk ubuntu,How to install Android SDK in Ubuntu System

1. install Java SE and configure envirornment variablesget the Java SE from here: http://java.sun.com/javase/downloads/index.jspthen you will get a bin file named with "jdk-6u17-linux-i586.bin"open a ...

weixin_42361478的博客 271

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

总结一下,Install Android SDK in Ubuntu

  网上很多这方面的文章,不少都是直接英文的、在线安装的方式。由于国内对于登陆google的某些网站还是受到歧视,所以我采用离线的方式进行安装,这种方式也是比较快的。 1.      安装Ubuntu, 同时把Linux的目录共享给windows.2.      在window里下载软件3.      把下载的软件拷贝到Linux里面4.      开始安装5.

Linux智能手机--cuijpus的专栏 6752

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

How to install Android SDK in Ubuntu System

1. install Java SE and configure envirornment variablesget the Java SE from here: http://java.sun.com/javase/downloads/index.jspthen you will get a bin file named with "jdk-6u17-linux-i586....

weixin_33882443的博客 137

install android studio in ubuntu linux

1 install jdk-7 use below command in terminal: 点击(此处)折叠或

warrior_zhang的专栏 452

apt get android sdk,如何在Ubuntu上安装Android SDK?

问题描述对于我的Ubuntu机器,我从this页面下载了最新版本的Android SDK。To get started on Linux:Unpack the .zip file you’ve downloaded. The SDK files are download separately to a user-specified directory.Make a note of the name...

weixin_36340672的博客 1458

Ubuntu install android studio

Ubuntu install android studio 1.安装 openjdk8,并在配置文件 /etc/profile中,追加如下内容: sudo aptitude install openjdk-8-jdk # openjdk env setting by bash export JAVA_HOME=/usr/lib/jvm/java-8-o...

weixin_30588827的博客 370

Android SDK安装

安装Android SDK 下载SDK cd Downloads(任意文件夹) wget https://dl.google.com/android/android-sdk_r24.2-linux.tgz 解压缩安装包,移动文件夹 tar xvzf android-sdk_r24.2-linux.tgz sudo mv android-sdk-linux /usr/local/And...

小冯先生的博客 3670

apt-get install android-sdk,linux - How to install Android SDK on Ubuntu? - Stack Overflow

Option 1:sudo apt update && sudo apt install android-sdkThe location of Android SDK on Linux can be any of the following:/home/AccountName/Android/Sdk/usr/lib/android-sdk/Library/Android/sdk//...

weixin_35897916的博客 435

Ubuntu20.04下 “Failed to install the following Android SDK packages as some licences have not..“error

在Ubuntu下新安装Android studio,导入工程并build后,出现以下错误: 问题出在 应该在构建前接受licences. 解决问题只需要两步: 1. 打开File -> Settings 出现Settings界面后Appearance -> System Settings -> Android SDK -> SDK Tools 下载Android SDK Command-line Tools(latest) ...

ztf_ange的博客 738

Unable to install Android Studio in Ubuntu

最近在64位的Ubuntu上面安装Android Studio,遇到了上面的问题,在stackoverflow上面搜索了一圈后,发现是64位系统的问题,需要安装一些32位的依赖库。安装的命令如下:sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6完美解决。 参考链接: http://stackoverflow.

902

Android_install_in_ubuntu

  转眼间几年过去了,当初自学的android也忘的差不多了。 而今迈步从头越了!   简要的安装android环境 in ubuntu How to install Android SDK in Ubuntu System    最好的方式还是看官方的tutorial和guides,这些都与时俱进,不断更新中。不论网络上的如blog,还是书中的内容,很快就过时了。   下载...

fantaxy025025的专栏 140

VMware安装Ubuntu教程,Linux下搭建Android开发环境

VMware安装Ubuntu 1. 安装VMware VMware 下载地址 http://download3.vmware.com/software/wkst/file/VMware-workstation-full-10.0.0-1295980.exe 注册码 5C4A7-6Q20J-6ZD58-K2C72-0AKPE 1Y0W5-0W205-7Z8J0-C8C5M-9A6MF 2. VMware安装Ub

6974

Android 系统源码——下载到编译

一直想下载、编译、调试一下Android源码 ,加强对一些framework的理解,搞了好多次,终于可以正常调试了。这里进行一些总结和分享。 Android源码到模拟器运行,主要有的四个步骤: 下载源码 搭建编译环境 准备编译 我使用的环境是Ubuntu16.04 、openJDK8、Android 8.0.0 硬件软件要求 官方文档:要求 硬件要求: 如果是 Android 2.3.x (...

薛瑄的博客 4万+
上一篇: 手机3D时代的来临。
下一篇: 总结一下,Install Android SDK in Ubuntu
testhw
博客等级 码龄19年 172粉丝 183原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值