从 git 树运行 android 源
我刚刚在 Android 源代码树的 cupcake 分支上下载了最新的相机应用程序,主要是为了找到可以窃取的示例,以便在我自己的应用程序中控制相机。它从 此处。然而,当我在 Eclipse 中将提取的文件夹作为新的 Android 项目打开时,我收到大量编译错误,示例如下。我的构建路径中有 Android 1.5 库。它里面只有android.jar吗?它应该只包含 android.jar,对吧?还有什么我应该做的吗?为什么我不能直接从树上编译一些东西?
错误示例:
无法解析 mScrollX 无法解析
MediaStore.EXTRA_SHOW_ACTION_ICONS 无法解析
类型的 commitUpdates() 方法。
Cursor等
另外:清单文件中的错误:类 com.android.camera.UploadService 不存在
I just downloaded the most recent camera app on the cupcake branch of the android source tree, mostly in order to find examples to steal from in order to control the camera in my own application. It got the source from here. However, when I opened up the extracted folder as a new android project in eclipse, I am getting TONS of compile errors, examples below. I have the Android 1.5 library in the build path. It only has android.jar in it? It is only supposed to have android.jar in it-right? Is there something else that I should be doing? Why can't I compile something straight off of the tree?
Error examples:
mScrollX cannot be resolved
MediaStore.EXTRA_SHOW_ACTION_ICONS cannot be resolved
The method commitUpdates() is undefined for the type Cursor
etc.
Also: an error in the Manifest File: Class com.android.camera.UploadService does not exist
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,你不能从 SDK 构建它,因为它太旧了,而且在发布时,谷歌仍然依赖于他们从未发布过的内部东西。更高版本可以使用 SDK 构建(我得到了 Froyo 工作的版本),但不是可怜的小纸杯蛋糕。
http://groups.google.com/group/ android-developers/browse_thread/thread/f37cc0e732e0101e?pli=1
Apparently, you can't build it from the SDK 'cause it is too old, and at the time of the release, google was still depending on in-house stuff that they never shipped out. Later versions are buildable with the SDK (I got the version for Froyo working) but not poor little cupcake.
http://groups.google.com/group/android-developers/browse_thread/thread/f37cc0e732e0101e?pli=1