项目导入谷歌提供服务播放错误 [英] Project import giving Google Play Service error
问题描述
我工作的开放式数据包。我已经克隆了ODK收集我的系统上回购。
I am working on Open Data Kit. I have cloned the ODK Collect repo on my system.
现在每当我试图导入Android项目在我的Android工作室,
我碰到下面的错误
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
现在添加依赖
- 右键单击项目文件夹,点击打开模块设置
- 转到依赖标签(最后一个)
- 选择的 + 在右侧的按钮,选择图书馆依赖
- 滚动到谷歌播放服务,并选择它。
- Right click on the project folder click Open Module Setting
- Goto dependency tab (last one)
- Select + button on the right side , Select Library dependency.
- Scroll to Google play service and select it.
现在,您将能够导入
和谷歌工作,发挥服务。
这篇关于项目导入谷歌提供服务播放错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!