配置Android开发环境

本文详细介绍如何搭建Android开发环境,包括下载并安装Eclipse、JDK、SDKStarterPackage等必要软件,配置Eclipse中的AndroidDevelopmentTools(ADT)插件,添加所需平台和其他组件,以及创建Android虚拟设备(AVD)。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、下载安装必要的软件:Eclipse、JDK
2、下载SDK Starter Package (http://developer.android.com/sdk/index.html),解压到一个目录
3、在Eclipse中安装Android Development Tools (ADT) 插件
   a、Start Eclipse, then select Help > Install New Software....
   b、Click Add, in the top-right corner.
   c、In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/
   d、Click OK
4、配置ADT插件
   a、Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences).
   b、Select Android from the left panel.
   c、For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
   d、Click Apply, then OK.
5、添加平台及其他组件
   在Eclipse界面中, 选择菜单 Window > Android SDK and AVD Manager,点左侧“Available packages”,在右侧选需要的平台及组件
6、创建一个Android Virtual Device (AVD)
   a、In Eclipse, choose Window > Android SDK and AVD Manager.
   b、Select Virtual Devices in the left panel.
   c、Click New.The Create New AVD dialog appears.
   d、Type the name of the AVD, such as "my_avd".
   e、Choose a target. The target is the platform (that is, the version of the Android SDK, such as 2.1) you want to run on the emulator.
   f、Click Create AVD.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值