标签:
android update project -p . -t "android-17"
#keystore
key.store=xx.p12
key.alias=xxx
key.store.password=xxx
key.alias.password=xxx
> BUILD FAILED > C:\Android\android-sdk\tools\ant\build.xml:601: The following error occurred while executing this line: > C:\Android\android-sdk\tools\ant\build.xml:653: The following error occurred while executing this line: > C:\Android\android-sdk\tools\ant\build.xml:698: null returned: 1
Also, if eclipse is set to ‘build automatically‘ then this could keep popping up because eclipse will keep regenerating into the bin folder.
just run ‘ant clean release‘ instead of ‘ant release‘ when you are building this.
rm -fR $(find . -type d -name crunch|xargs)
假设遇到上述error 就运行 ant clean release
能够參考我的项目:https://github.com/mentor811/Android-Batch-Pack
參考:https://github.com/umeng/umeng-muti-channel-build-tool/tree/master/Gradle
gradle clean
gradle build
a、AndroidManifest.xml里的凝视必须<!-- 前后必需要有空格 -->
b、中文凝视可能会有乱码
c、各个library project 里的 minsdk 和targetsdk 要和主工程保持一致
d、对png 图片的格式非常严格
e、lint
而 使用Ant 时。没有遇到上述问题,直接就成功了。
第一次运行时 之前没有build的的项目
左边gradle 右边 ant
Android Ant 和 Gradle 打包流程和效率对照
标签:
原文地址:http://www.cnblogs.com/bhlsheji/p/5104360.html