调试 Android 源代码构建
有构建 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要运行刚刚构建的模拟器。如果您已按照构建说明进行操作,它应该在您的路径上,因此只需运行它即可。
从源代码树的根运行“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
请查看调试 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.