http://www.blogjava.net/1504/archive/2009/04/15/265851.html // ant-build.xml打包应用程序【总结】, 对build.xml介绍比较详细
复制资源文件到工程根目录即可运行.参考http://blog.sina.com.cn/s/blog_74c22b21010173f8.html
注意事项:不支持library工程的打包,需要ant-contrib-1.0b3.jar支持
部分需要修改的关键点:
local.properties中
sdk.dir 指 android adk路径(注意双斜杠)
build.xml中
<!-- 项目名称testant,可用全局替换为当前项目名称 -->
ant.properties中
application.package=com.example.testant 项目包名
ant.project.name=testant 项目名(同build.xml)
java.encoding=utf-8 项目编码
out.absolute.dir=d:/compile 临时文件夹
gos.path=d:/app-version/test apk存放文件夹
key.store=D:/\u5F00\u53D1\u8D44\u6599\/rainie.keystore 签名文件位置
key.store.password=rainie 签名密码
key.alias=rainie 签名别名
key.alias.password=rainie 别名密码
app_version=1.0 apk版本
market_channels=guanwang,shuihu apk渠道(逗号分隔 )
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ant自动打包流程: 1.生成keystore, 签名时要用到. 可参考http://www.cnblogs.com/feisky/archive/2010/01/17/1650076.html 2.更改localproperties中的sdk.dir, 为你机器上环境的安装路径 3.更改ant下的路径, 可参考README.txt文件 5.在testant下直接运行ant即可生成apk.
资源推荐
资源详情
资源评论
收起资源包目录
testant.rar (52个子文件)
testant
README.txt 1KB
bin
classes.dex 319KB
res
drawable-ldpi
ic_launcher.png 2KB
drawable-hdpi
ic_launcher.png 4KB
ic_action_search.png 409B
drawable-xhdpi
ic_launcher.png 5KB
ic_action_search.png 491B
drawable-mdpi
ic_launcher.png 3KB
ic_action_search.png 311B
jarlist.cache 119B
classes
com
example
testant
MainActivity.class 1KB
BuildConfig.class 347B
R$layout.class 406B
R$id.class 394B
R$drawable.class 450B
R$attr.class 343B
R$menu.class 400B
R.class 638B
R$string.class 516B
R$style.class 398B
resources.ap_ 20KB
testant.apk 154KB
AndroidManifest.xml.d 94B
AndroidManifest.xml 923B
android.keystore 2KB
res
drawable-ldpi
ic_launcher.png 1KB
values-v11
styles.xml 94B
menu
activity_main.xml 240B
values-v14
styles.xml 108B
drawable-hdpi
ic_launcher.png 3KB
ic_action_search.png 3KB
drawable-xhdpi
ic_launcher.png 4KB
ic_action_search.png 3KB
values
strings.xml 243B
styles.xml 89B
drawable-mdpi
ic_launcher.png 2KB
ic_action_search.png 3KB
layout
activity_main.xml 508B
proguard-project.txt 781B
ic_launcher-web.png 36KB
ant.properties 343B
build.xml 5KB
assets
gen
com
example
testant
BuildConfig.java 162B
R.java 1KB
R.java.d 1KB
src
com
example
testant
MainActivity.java 910B
.project 843B
.classpath 364B
local.properties 447B
project.properties 563B
AndroidManifest.xml 923B
libs
android-support-v4.jar 341KB
共 52 条
- 1
资源评论
jlcheng2002
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功