MapActivity不能被解析为一个类型,甚至与谷歌API的目标 [英] MapActivity cannot be resolved to a type, even with Google API target

查看:161
本文介绍了MapActivity不能被解析为一个类型,甚至与谷歌API的目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还获得进口com.google不能被解析为一个类型, 我不知道这是否是相关的,但我的项目在Android 2.3.3运行正常,但冻结在启动时对谷歌API的2.3.3和4.0,

I also get "the import com.google cannot be resolved to a type", and i'm not sure if it is related, but my project runs fine on Android 2.3.3 but freezes on startup on the Google API 2.3.3 and 4.0,

P.S。我已经包括

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

请帮忙!谢谢

推荐答案

您需要引用正确的库在编译时。但要使用你描述的是问的Andr​​oid这个特定库在运行时。

You need to reference correct library at compile time. But what you describe is asking Android to use this specific library at runtime.

您需要右键点击你的Eclipse项目,属性 - > Android系统。在项目建设目标选择与供应商的任何目标谷歌公司。

You need to right click your Eclipse project, Properties -> Android. In Project Build Target select any target with vendor Google Inc..

这篇关于MapActivity不能被解析为一个类型,甚至与谷歌API的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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