1

当我尝试从日食到Android Studio中导入一个项目,它表明我这个错误:图书馆参考库复制找不到

Project BLE_Sample_Android-master: path/project.properties: Library reference Lib\Copy of google-play-services_lib could not be found Path is path\Lib\Copy of google-play-services_lib which resolves to \BLE_Sample_Android-master\Lib\Copy of google-play-services_lib

已经粘贴google-play-services_lib.jar副本project/libs,但它不起作用。

回答

0

在你build.gradle文件dependencies文件中加入这一行

compile 'com.google.android.gms:play-services:8.4.0' 

你并不需要添加.jar库。

然后,选择Tools -> Android -> SDK Manager

检查是否已经安装了谷歌服务库:

enter image description here

希望它能帮助

+0

如果您是通过Maven的你加入GMS需要“Google Repository”而不是“Google Play服务”。 –