Google android 开发,配置,HelloWorld(演示)
Google 发布了android 其实就是Gphone的开发环境
现在我们就开始进行安装及配置开发环境,并且开发第一个HelloWorld
第一步: 安装sdk 首先去 http://code.google.com/android/download.html下载 sdk
第二步: 解压缩 下载的 sdk 到你指定的目录, 我是解压缩到 "d:\" 下
这时你在d盘下看到 "D:\android_sdk_windows_m3-rc20a"
第三步: 配置环境: 点击"我的电脑"右键 --> "属性" --> "高级" -->"环境变量" -->
"系统变量" --> 在"path"中增加 "D:\android_sdk_windows_m3-rc20a\tools "
ok , 在命令行中输入 " aapt" 能够看见 :
Android Asset Packaging Tool
Usage:
aapt l[ist] [-v] file.{zip,jar,apk}
List contents of Zip-compatible archive.
aapt p[ackage] [-c][-f][-g][-s][-u][-m][-v][-x][-M AndroidManifest.xml] \
[-l locale1[,locale2,...]] [-d device1[,device2,...]] \
[-I base-package [-I base-package ...]] \
[-A asset-source-dir] [-P public-definitions-file] \
[-S resource-source-dir] \
file.{zip,jar,apk} [raw-files-dir [raw-files-dir] ...]
Create or update the named Zip-compatible archive. All files in raw-files-di
r
will be added to the archive, as will selected directories in asset-root-dir
(which should contain a 'default' directory and some locale-specific
directories). The named locales and vendors will be added, all others
will be excluded.
aapt c[ompile] [-m][-v][-x] [-M AndroidManifest.xml] [-J R-file-dir] \
现在环境配置好了.
第四步:下载eclipse插件:
打开eclipse "help"--> "sofware updates" -->find and Install
选择: "search for new feature to install " 点击 "next"
点击: New Remote site
在打开的对话框中url 中输入 : https://dl-ssl.google.com/android/eclipse/
点击 "ok"
第五步: 配置eclipse :
选择: window -->Preferences 选择--> android
sdk location 中选择你解压缩的 android sdk 的目录
点击: ok
第六步: 开发第一个HelloWorld
欢迎大家访问我的个人网站 萌萌的IT人
更多相关文章
- Android(安卓)环境搭建
- 《Android开发从零开始》——25.数据存储(4)
- android studio调试c/c++代码
- Android开发环境搭建
- 使用NetBeans搭建Android开发环境
- Android(安卓)Chromium WebView html js 开发系列
- [Android(安卓)NDK]Android(安卓)JNI开发例子 ---3 在JNI中实现o
- 在Fragment中设置控件点击方法,执行失败。
- 【Android(安卓)开发教程】Toast通知