错误包`com.google.android.gms ...`不存在 [英] Error package `com.google.android.gms...` doesn't exist

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

问题描述

我是新的Andr​​oid开发。我正在学习使用Parse.com后端服务,并会停留在初期。

I am new to Android development. I am learning to use Parse.com backend service and get stuck early on.

我下面教程创建一个使用应用程序谷歌地图Android的API V2 。我做了什么:

I am following tutorial to create application that uses Google Maps Android API v2. What I've done :

  1. 在下载样本 从parse项目
  2. 导入从下载的项目到Android工作室AnyWall-的Andr​​oid \ Anywall 文件夹
  3. 重建项目
  1. download sample project from parse
  2. Import AnyWall-android\Anywall folder from downloaded project to Android Studio
  3. Rebuild project

然后,我得到了一堆错误的位置:

Then I get a bunch of errors here :

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesClient;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.location.LocationClient;
import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap.CancelableCallback;
import com.google.android.gms.maps.GoogleMap.OnCameraChangeListener;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.CameraPosition;
import com.google.android.gms.maps.model.Circle;
import com.google.android.gms.maps.model.CircleOptions;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.LatLngBounds;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;

通用位置地图高亮红。现在的问题是如何解决这些错误?

common, location, and maps highlighted red. The question is how to resolve these errors?

我AP preciate任何形式的帮助或方向(我应该怎么检查?是不是错过图书馆吗?如果是,我应该补充哪些库和在哪里得到的?)

I appreciate any kind of help or direction (What should I check? Is it about missing library? If it is, what library should I add and where to get it?)

推荐答案

<一个href="http://stackoverflow.com/questions/16636300/cant-find-the-class-com-google-android-gms-location-locationclient-android">Can't找到类com.google.android.gms.location.LocationClient(机器人)

有一些问题,最后的GPS库。你必须使用的多张最新(6 +)的旧版本。尝试使用旧版本。我没有看到pcated或丢失有关LocationClient.class商务部德$ P $里的任何东西......

There is some problem with the last GPS lib. You have to use an older version than the latest(6.+). Try with an older version. I didn't see anything inside the doc deprecated or missing about the LocationClient.class...

编译com.google.android.gms:玩-服务:5 +

compile 'com.google.android.gms:play-services:5.+'

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

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