如何在没有 Eclipse 的情况下构建 apk 或使用配置文件修改 apk 构建? [英] How to build apk without eclipse or Modify the apk building with a config file?

查看:51
本文介绍了如何在没有 Eclipse 的情况下构建 apk 或使用配置文件修改 apk 构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从一个xml文件中构建一个带有一些大配置的apk.根据我们的配置 xml 文件对我们的源代码进行一些修改.或者任何其他方式来构建 apk 文件

我不想在应用程序运行时每次都读取我的配置文件,我想在应用程序本身中包含更改

欢迎所有建议,评论,答案,想法提前致谢....

I want to build an apk with some large configuration from a xml file.
I want to know if there is any method that can control the building process of apk or is there any way to create apk from our source with a little bit of modification on our source based on our config xml file.Or any other way to build apk file

I don't want to read my config file each and every time when the app run ,I want to include the change in application itself

All Suggestions,Comments,Answers,Ideas are Welcome Thanks in advance.....

推荐答案

如果您想手动构建应用程序:

If you want to manually build your application :

首先,您应该真正了解构建过程,如果您不了解't.

First off, you should really understand the build process, if you don't.

如果您在 Eclipse 中进行开发,则 ADT 插件会逐步构建当您对源代码进行更改时,您的项目.Eclipse 输出一个 .apk 文件自动添加到项目的 bin 文件夹中,所以你做无需执行任何额外操作即可生成 .apk.

If you are developing in Eclipse, the ADT plugin incrementally builds your project as you make changes to the source code. Eclipse outputs an .apk file automatically to the bin folder of the project, so you do not have to do anything extra to generate the .apk.

如果您在非 Eclipse 环境中进行开发,您可以构建您的项目中生成的 build.xml Ant 文件目录.Ant 文件调用自动调用为您构建工具.

If you are developing in a non-Eclipse environment, you can build your project with the generated build.xml Ant file that is in the project directory. The Ant file calls targets that automatically call the build tools for you.

了解构建过程后,您可以通过学习命令来执行构建中涉及的各个步骤.文档介绍了您可以使用的各种命令.

Once you understand the build process, you can start off by learning the commands to perform the various steps involved in building. The documentation talks about the various commands you can use.

教程关于Ant 带您从头到尾了解如何执行自定义构建.

This Tutorial on Ant takes you from start to finish on how to perform a custom build.

更多教程:

这篇关于如何在没有 Eclipse 的情况下构建 apk 或使用配置文件修改 apk 构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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