MapActivity不能被解析为一个类型,甚至与谷歌API的目标目标、类型、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...

我还获得进口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..

阅读全文

相关推荐

最新文章