【问题标题】:MapActivity cannot be resolved to a type, even with Google API targetMapActivity 无法解析为类型,即使使用 Google API 目标
【发布时间】:2012-01-18 21:30:25
【问题描述】:

我还得到“无法将导入 com.google 解析为类型”, 我不确定它是否相关,但我的项目在 Android 2.3.3 上运行良好,但在 Google API 2.3.3 和 4.0 上启动时冻结,

附言我已经包括了

<uses-library android:name="com.google.android.maps" />

请帮忙!谢谢

【问题讨论】:

    标签: android google-maps


    【解决方案1】:

    您需要在编译时引用正确的库。但是您所描述的是要求 Android 在运行时使用这个特定的库。

    您需要右键单击您的 Eclipse 项目,属性 -> Android。在Project Build Target 中选择供应商Google Inc. 的任何目标。

    【讨论】:

      【解决方案2】:

      问题是您没有为特定的 Android 平台使用 Google Api 只需检查适当的目标 Google API 即可解决问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-04-07
        • 2011-04-06
        • 1970-01-01
        • 2015-06-10
        • 2020-10-16
        • 1970-01-01
        • 2015-10-22
        • 2012-01-09
        相关资源
        最近更新 更多