编译Android项目没有日食APK [英] Compile android project to apk without eclipse

查看:115
本文介绍了编译Android项目没有日食APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所做的是我从我的Eclipse项目中采取的类文件,并运行它们槽的优化/混淆。所以,我现在有优化的类文件,我想在一个APK的形式,这样我就可以签署并发布。不过,我失去了如何做到这一点。我想我不能只是将它们复制到我的Eclipse项目的bin文件夹,因为日食只会覆盖他们用新的编译,当我尝试导出一个签名的apk。那么,如何从这些类文件中创建一个APK?

What I have done is I have taken the class-files from my eclipse project and run them trough an optimizer/obfuscator. So I now have optimized class-files that I want to get in the form of an apk so I can sign and publish it. However, I am lost on how to do this. I guess I cant just copy them into the bin-folder of my eclipse-project, because eclipse would just overwrite them with a new compilation when I try to export a signed apk. So how do I create an apk from these class-files?

干杯,

推荐答案

你可以尝试把它们放在斌/类,然后再使用蚁族命令来构建应用程序

you can try to put them in bin/classes and then use "ant" command to build your application

cd /path/to/my/app
ant release

它会问你为你的私钥每次签署的应用程序,它可以通过编辑配置为自动登录build.properties的文件:

it will ask you every time for your private key to sign the app, it can be configured to auto-sign by editing "build.properties" file:

key.store=release.keystore
key.alias=release
key.store.password=my_key_password
key.alias.password=my_key_password

您也可以调查的Andr​​oid SDK,找到Ant构建它实际上使用的脚本,然后将您的自定义混淆器/优化呼叫建立过程中间。

you can also investigate Android SDK, find the ANT build scripts it actually uses, and insert your custom obfuscator/optimizer call in middle of build process.

这篇关于编译Android项目没有日食APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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