构建使用Ant脚本中的APK [英] Building the apk using the ant script
问题描述
在使用Ant脚本创建的.apk文件IAM面对的问题。生成的apk文件命名为_unaligned.apk而不是.apk文件和安装_unaligned.apk文件到设备,我得到强制关闭显示java.lang.VerifyError exaception,但使用IDE生成相同的APK工作正常。我打这个很长一段时间,有可能是你共享生成的.apk文件build.xml文件。
iam 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 exaception , but the same apk generated using IDE works fine . i am struck on this for a long time , is it possible for you to share the build.xml file that generates the .apk file .
感谢您和问候
谢赫Ahmed.j
推荐答案
的这个BLOQ进入解释了所有必要的步骤。特别是如果你想定制构建脚本。
this Bloq entry explains all necessary steps. Especially if you want to customize your build script.
如果您正在寻找实际的构建脚本,只需要看着你的Android 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屋!