【问题标题】:Android ADT Eclipse: com.android.common and com.android.ex imports could not be resolvedAndroid ADT Eclipse:com.android.common 和 com.android.ex 导入无法解析
【发布时间】:2013-03-18 22:02:03
【问题描述】:

我正在尝试为 Android 构建 Google 的开源日历应用程序(来源:https://github.com/android/platform_packages_apps_calendar),以便我可以稍微分解一下它的代码。当我将新克隆的项目导入 Eclipse 时,我收到一堆 ____ cannot be resolved to a type 错误。仔细查看未解析的类型,根本原因似乎是:

The import com.android.common cannot be resolved
The import com.android.ex cannot be resolved

我一直在谷歌搜索,但似乎无法弄清楚发生了什么?我一定错过了一些图书馆?我已经安装了 Android SDK Manager 中的所有内容,甚至是可选库。我已经尝试清理和修复构建路径属性等。错误仍然存​​在。

有人知道我可以做些什么来编译这个东西吗?

【问题讨论】:

  • 可能是一些额外的库或 Google 内部的类,如果它们不在标准 Android 包中。
  • 我想知道如何追踪它们...我认为这都是开源的
  • 我也遇到了同样的问题,有人找到解决办法了吗?
  • @M.ElSaka 我相信这个项目的 github 问题跟踪器被忽略了,因为 github 只是他们谷歌代码仓库的镜像。

标签: android eclipse google-calendar-api importerror


【解决方案1】:

我已经设法添加了几乎所有必需的依赖项,现在我得到了一个几乎可以运行的版本。 请通过here查看它

你也可以查看最后一个commit,它包含了我为获得这个运行版本所做的所有事情。

祝你有美好的一天:)

【讨论】:

    猜你喜欢
    • 2016-10-25
    • 1970-01-01
    • 2015-01-16
    • 2011-12-15
    • 2015-04-19
    • 1970-01-01
    • 1970-01-01
    • 2017-02-01
    • 1970-01-01
    相关资源
    最近更新 更多