构建使用Ant脚本的APK。 [英] Building the apk using the ant script .

查看:217
本文介绍了构建使用Ant脚本的APK。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Ant脚本创建.apk文件所面临的问题。生成的apk文件命名为_unaligned.apk而不是.apk文件和安装_unaligned.apk文件到设备,我得到强制关闭显示java.lang.VerifyError例外,但使用IDE生成相同的APK工作正常。我打这个很长一段时间。您可以共享生成.apk文件build.xml文件?

I am facing problem in creating the .apk file using the ant script . The generated .apk named as _unaligned.apk instead of .apk and on installing the _unaligned.apk file to the device I get force-close showing the java.lang.VerifyError exception, but the same apk generated using IDE works fine. I am struck on this for a long time. Can you share the build.xml file that generates the .apk file?

推荐答案

这个Bloq进入解释了所有必要的步骤。特别是如果你想定制你的构建脚本。

this Bloq entry explains all necessary steps. Especially if you want to customize your build script.

如果您正在寻找实际的构建脚本,只是看着你的Andr​​oid SDK文件夹平台/ Android的X /模板。应该有一个叫做android_rules.xml文件

If your are looking for the actual build script, just look into your Android SDK folder platforms/android-X/templates. There should be a file called android_rules.xml.

我定制我的构建脚本清洁,建设,签署并分发到APK连接的设备。如果你愿意,我可以为你提供我的脚本。只是与我联系!

I customized my build script to clean, build, sign and distributing the apk to an attached device. If you like, I can provide you with my script. Just contact me!

这篇关于构建使用Ant脚本的APK。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆