Android源引用缺少类 [英] Android source referencing missing classes

查看:204
本文介绍了Android源引用缺少类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我克隆了一些来自Android开源项目的树木来看一看在code,但我不能建立他们,因为他们引用这似乎并不存在的类。

有关例如,该音乐应用<一href=\"http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/AlbumBrowserActivity.java;h=ba3e2127606f310f61b1f32fe2d01656cd81a57e;hb=master\"相对=nofollow>这里引用 android.media.MediaFile 它根据的包摘要不存在,以及之类的东西 ArrayListCursor 里面有一个老左右,但的javadoc 是的当前文档缺席。

所以,从公布的SDK开源项目脱节?此外,有没有与当前的SDK来构建这些开源软件包的方式?

谢谢,

-JQP


解决方案

  

原来是开源项目脱节
  从发布的SDK?


股票Android应用程序都没有任何关系的SDK。大多数人的SDK存在之前写的。

因此​​,例如,有一个<一个href=\"http://www.google.com/$c$csearch/p?hl=en#uX1GffpyOZk/media/java/android/media/MediaFile.java&q=package%3aandroid%20MediaFile&sa=N&cd=1&ct=rc\"相对=nofollow> android.media.MediaFile 类,和<一个href=\"http://www.google.com/$c$csearch/p?hl=en#uX1GffpyOZk/core/java/com/android/internal/database/ArrayListCursor.java&q=package%3aandroid%20ArrayListCursor&sa=N&cd=1&ct=rc\"相对=nofollow> ArrayListCursor 类。他们不是SDK的一部分,但是你可以快速使用谷歌$找到源为他们C $ C搜索包:机器人预选赛


  

此外,有没有建立这些办法
  开源软件包与当前
  SDK?


如果通过开源软件包你的意思是应用程序,那么一般不,他们不能使用SDK构建的。有一天,也许他们可以,但不能没有在某些情况下,大量的工作。

I cloned some of the trees from the Android Open Source Project to take a look at the code, but I can't build them because they reference classes which don't seem to exist.

For instance, the music application here references android.media.MediaFile which according to the package summary does not exist, as well as things like ArrayListCursor which has an old javadoc around but is absent in current documentation.

So is the open source project disjoint from the released SDK? Also, is there a way to build these open source packages with the current SDK?

Thanks,

-JQP

解决方案

So is the open source project disjoint from the released SDK?

The stock Android applications have nothing whatsoever to do with the SDK. Most were written before the SDK existed.

So, for example, there is an android.media.MediaFile class, and an ArrayListCursor class. They are not part of the SDK, but you can find the source for them quickly using Google Code Search and the package:android qualifier.

Also, is there a way to build these open source packages with the current SDK?

If by "open source packages" you mean applications, then generally no, they cannot be built using the SDK. Someday, perhaps they can be, but not without substantial work in some cases.

这篇关于Android源引用缺少类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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