包com.google.android.maps不存在(的IntelliJ) [英] Package com.google.android.maps does not exist (IntelliJ)

查看:639
本文介绍了包com.google.android.maps不存在(的IntelliJ)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Google地图API之前很多次,没有这个问题,但我已经清楚地做了一些不对的的IntelliJ项目。在设置 - >软件开发工具包我已指定在classpath平台7谷歌API - 它仍然无法建立并称地图API不存在。我也尝试添加一个单独的参考到类路径到谷歌的API的.jar,但仍是同样的问题。

I've used the Maps APIs many times before and not had this problem, but I've clearly done something wrong with this IntelliJ project. Under Settings->SDKs I have specified the platform 7 Google API in the classpath - it still fails to build saying the Maps APIs are not there. I have also tried added a separate reference to the classpath to the Google APIs .jar, but still the same problem.

我如何解决我的IntelliJ IDE项目,因此正确地建立针对谷歌的API?

How do I fix my IntelliJ IDE project so it correctly builds against the Google APIs?

这是一个漫长的一天,我可能失去了一些东西明显。

It's been a long day, I am probably missing something obvious.

推荐答案

对不起,意识到我做了什么错后再次回答我的问题。因此,要获得谷歌(地图等)中的API的IntelliJ工作:

Sorry, answering my own question again after realising what I've done wrong. So to get the Google (Maps etc) APIs working in IntelliJ:

  1. 在设置 - >项目结构 - >软件开发工具包为您针对性的平台级增加一个项目。在Classpath选项卡中添加一个引用到Android的SDK文件夹的顶部,并使用构建目标菜单指定目标哪个平台。
  2. 在设置 - >项目结构 - >模块 - >相关性选择模块SDK列表中的SDK版本
  3. 如果您需要针对谷歌(地图等),然后在设置 - 原料药>项目结构 - > SDKs->类路径请确保您还添加引用.jar文件对谷歌的API的平台版本(例如插件/addon_google_apis_google_inc_8/libs/maps.jar

这篇关于包com.google.android.maps不存在(的IntelliJ)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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