项目导入谷歌提供服务播放错误 [英] Project import giving Google Play Service error

查看:135
本文介绍了项目导入谷歌提供服务播放错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的开放式数据包。我已经克隆了ODK收集我的系统上回购。

I am working on Open Data Kit. I have cloned the ODK Collect repo on my system.

现在每当我试图导入Android项目在我的Andr​​oid工作室,
我碰到下面的错误

Now whenever i try to import the Android Project in my Android Studio, i get the following error

* Project ODK Collect:D:\Development\opendatakit.collect\project.properties:
Library reference ..\playservices could not be found
Path is D:\Development\opendatakit.collect\..\playservices which resolves to D:\Development\playservices

我已经把谷歌播放-服务JAR文件在项目文件夹。
请指导详细的步骤。

I have put the Google-Play-Services JAR file in the project folder. Please guide with detailed steps.

我搜索了类似的问题,以及解决工作无

非常感谢。

推荐答案

要prevent 不可恢复的错误

首先打开Eclipse和开放项目中删除所有的错误使项目运行的。

如果你没有安装ecclipse然后从项目中删除(保留备份) project.properties 文件

If you don't have ecclipse installed then delete (keep backup) project.properties file from the project

现在尝试导入您的项目中的 Android的工作室您将无法获得不可恢复的错误

Now try to import your project in Android Studio you will not get Unrecoverable error

现在添加依赖


  1. 右键单击项目文件夹,点击打开模块设置

  2. 转到依赖标签(最后一个)

  3. 选择的 + 在右侧的按钮,选择图书馆依赖

  4. 滚动到谷歌播放服务,并选择它。

  1. Right click on the project folder click Open Module Setting
  2. Goto dependency tab (last one)
  3. Select + button on the right side , Select Library dependency.
  4. Scroll to Google play service and select it.

现在,您将能够导入谷歌工作,发挥服务。

这篇关于项目导入谷歌提供服务播放错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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