将 android 源代码以可编译的方式获取到 eclipse 上
我正在尝试编写一个使用本机 android 消息应用程序并对其进行修改的应用程序,您能给我(一个 Windows 7 eclipse indigo 用户)解释一下如何将源代码获取到我的机器并使其能够编译吗? 我已经尝试过:访问 android.git.kernel.org 并获取 mms 应用程序项目的快照;获取 .zip 格式的 android 源代码并将其作为外部 JAR 导入到我引用的库中(不过这有问题......包图标是透明的,而不是 Google API 中的棕色图标);使用 Git 导入项目
I am trying to write an app that uses the native android messaging app and adds modifications to it, can you give me, a windows 7 eclipse indigo user, an explanation of how to get the source to my machine and have it be able to compile?
I already tried: going to android.git.kernel.org and getting the snapshot of the mms app project; getting the android source code in .zip format and importing it as an external JAR to my referenced libraries (there was something wrong with that though...the package icons were transparent as opposed to the ones in the Google API's which were brown); importing the project using Git
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“原生 Android 消息应用程序”不是一个独立的应用程序,旨在使用 Android SDK 构建。它只能作为构建整个固件的一部分来构建。
如果您的目标是为设备构建替换固件,请访问 http://source.android.com/ source/index.html 并按照左侧“入门”标题中的说明进行操作,也许还有“使用 Eclipse”页面。
如果您的目标是构建一个独立的应用程序,您不仅需要使用“修改”来修改“本机 Android 消息应用程序”,而且还需要摆脱其所有其他内部依赖项。您可能需要几周到几个月的时间才能完成。
The "native android messaging app" is not a standalone application, designed to be build with the Android SDK. It can only be built as part of building the entire firmware.
If your objective is to build replacement firmware for a device, visit http://source.android.com/source/index.html and follow the instructions in the "Getting Started" heading on the left, plus perhaps the "Using Eclipse" page.
If your objective is to build a standalone app, you will need to not only modify "the native android messaging app" with your "modifications", but also get rid of all its other internal dependencies. This may take weeks to months for you to accomplish.