无法导入com.google.android.maps.MapView [英] can't import com.google.android.maps.MapView

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

问题描述



我的问题是我无法使用extend MapActivity或者是导入库存。
我试图使用Android API中的Google API,像其他一些线程一样,但问题是我的SDK Manager中没有Google API来下载或选择。



我的Android SDK管理器
所以我在Android SDK管理器中只有Android Apis从Android 1.5(API 3)到Android 4.0.3(API 15),没有Google API。



以下是Android 4.0.3(API 15)中的Google API可用的示例安装Google API ...



是否有任何可下载或导入 Google API以不同的方式或我做错了?

解决方案

我有一个不同的解决方案有同样的问题,我


  1. 右键单击我的项目在Package Exploere和se选择构建路径 - >配置构建路径

  2. 选择Java Build Path和Libraries选项卡

  3. 选择添加外部Jar

  4. 导航到我的sdk / add-ons / addon-google_apis_google_inc _- / libs

  5. 选择maps.jar

然后我可以导入com.google.maps。*


Unfortunately after a long day searching I couldn't find anything useful for me.

My Problem is that I couldn't use "extend MapActivity" or rather import the libary. I tried to use "Google API" insted of "Android API" like recomended in some other threads but the problem is that I have no "Google API" in my SDK Manager to download or choose.

My Android SDK Manager So, I have in my "Android SDK Manager" just the Android Apis from "Android 1.5 (API 3)" to "Android 4.0.3 (API 15)" and no "Google API".

Here is an example where the "Google API" is available inside the "Android 4.0.3 (API 15)" Installing the Google APIs...

Is there any posibility to download or import the "Google API" in a different way or am I doing something wrong?

解决方案

I had the same problem with a different solution, I

  1. right clicked on my project in the Package Exploere and selected "Build Path->Configure Build Path"
  2. Selected "Java Build Path" and the "Libraries" tab
  3. Selected "Add External Jar"
  4. Navigated to my sdk/add-ons/addon-google_apis_google_inc_-/libs
  5. Selected "maps.jar"

I was then able to import com.google.maps.*

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

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