在实际的手机编译Android应用 [英] Compiling android apps on an actual phone

查看:145
本文介绍了在实际的手机编译Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想知道如何在Android平台上编译应用程序源$ C ​​$ C? 我知道这是可能的,因为我看到一些正在做它的应用程序... 感谢名单提前!

Hi I'd like to know how to compile an app source code on an android platform? I know it's possible because I saw some apps that are doing it... Thanx ahead!

推荐答案

我想你问的是什么办法在Android设备上编译Android应用程序。

I think what you are asking for is a way to compile android apps on an android device.

的方式这样新的IDE 做一个应用程序。

the way an app like this new IDE does.

如果这样你需要做的是采取一个开源的Java编译器,如EJC(在Eclipse中使用的Java编译器),并用它来编译Java源代码。这样,你会需要移植的Dalvik编译器能够运行,以产生由Java编译器生成的类文件DEX。

If so what you would need to do is to take an open source java compiler such as the ejc (the Java compiler used within Eclipse) and use it to compile your java source. You would then need to port the dalvik compiler to be able to run, in order to generate dex from the class files generated by the java compiler.

这是采访与他开发的助手对他们是如何做到这一点的详细信息。

An interview with he developers of AIDE has a little bit more info on how they did it.

更新:

其实我只是碰到一个开源项目提供类似的功能,但基于使用vim和现有的SDK CLI工具移植到Android设备上运行。该项目这里主办。

Actually I just came across an open source project which provides similar functionality but based on using vim and the existing SDK cli tools ported to run on a an android device. The project is hosted here.

更新2:

我发现又另一个开源项目也确实在设备编译/编译我认为应该为你提供你正在试图做例子......

I found yet another open source project that also does on device compile/build which I think should provide you with examples of what you are trying to do...

更具体地讲,如果你在<一个href="http://$c$c.google.com/p/java-ide-droid/source/browse/trunk/src/com/t_arn/JavaIDEdroid/IDE.java">IDE.java,你可以看到各个工具(EJC,DX,AAPT)如何被调用/使用。

More specifically, if you look in IDE.java, you can see how the individual tools (ejc, dx, aapt) are called/used.

这篇关于在实际的手机编译Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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