调试 Android 源代码构建

发布于 2024-08-18 16:27:19 字数 115 浏览 10 评论 0原文

有构建 android 源代码库的文档。但很难找到有关如何在模拟器环境中运行 Android 操作系统及其应用程序的信息,因此您可以测试您的更改。

有人能指出我正确的方向吗?我对Linux开发不熟悉。

There's documentation to build the android source code base. But it's hard to find information on how to run the android os and its applications in the emulator environment so you can test your changes.

Can anyone point me in the right direction? I am unfamiliar with Linux development.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终难愈 2024-08-25 16:27:19

您需要运行刚刚构建的模拟器。如果您已按照构建说明进行操作,它应该在您的路径上,因此只需运行它即可。

从源代码树的根运行“source build/envsetup.sh”是确保您拥有与谷歌工程师使用的几乎相同的设置的好方法。

快速的网络搜索发现了这个,这对我来说看起来很合适:

http://devtcg.blogspot.com/2009/03/building-running-and-debugging-android.html

(尽管我会使用“lunch generic-eng”而不是数字午餐。并且,是的,这确实是“午餐”,如“午餐组合”,如“您今天想要什么?”。)

如果您想在设备上进行测试,还有额外的说明:

http://source.android.com/documentation/building-for-dream

you need to run the emulator you just built. if you've followed the build instructions, it should be on your path, so just run it.

running "source build/envsetup.sh" from the root of your source tree is a good way to ensure you've got pretty much the same setup that google engineers use.

a quick web search found this, which looks about right to me:

http://devtcg.blogspot.com/2009/03/building-running-and-debugging-android.html

(though i'd use "lunch generic-eng" rather than a numeric lunch. and, yes, that really is "lunch", as in "lunch combo", as in "what would you like today?".)

if you want to test on a device, there are extra instructions:

http://source.android.com/documentation/building-for-dream

昵称有卵用 2024-08-25 16:27:19

请查看调试 Android Framework 服务。尽管它是为真实设备编写的,但我看不出有任何理由不为模拟器编写。

Please check Debugging Android Framework services. Even though it was written for real device, I don't see any reason why it doesn't for an emulator.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文