无法导入com.google.android.maps.MapActivity [英] Can not import com.google.android.maps.MapActivity

查看:330
本文介绍了无法导入com.google.android.maps.MapActivity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试导入com.google.android.maps.MapActivity ,但我的程序无法识别它。我也有< uses-library android:name =com.google.android.maps/>
并在我的项目中设置apiKey。 / p>

任何人都可以解释为什么我可以导入以上行?
提前感谢。

解决方案

您要使用什么Android版本?在您的项目设置中,请确保使用包含google API的项目构建目标。通常它们是Google API的名称。



我包含了项目设置的图像。


I try to import com.google.android.maps.MapActivity but my program can not recognize it. I also have <uses-library android:name="com.google.android.maps" /> and set the apiKey in my project.

Can anybody explain why I can import the above line? Thanks in advance.

解决方案

What Android Version to you use ? On your project Settings make sure that you use a Project Build Target that contains the google api. Normally they are names "Google APIs".

I included an image of the project settings.

这篇关于无法导入com.google.android.maps.MapActivity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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