找不到 google-play-services_lib 的库引用 Lib\Copy

Library reference Lib\Copy of google-play-services_lib could not be found

当我尝试将一个项目从 eclipse 导入到 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,但它不起作用。

在您的 build.gradle 文件中 dependencies 文件中添加此行

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

您不需要添加 .jar 库。

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

检查 Google 服务库是否已经安装:

希望对您有所帮助

我做了一些研究,发现解决问题的一种方法是删除“project.properties”文件中引用'google-play-services_lib'库.

这是我找到答案的地方:Android Studio - Library reference ../google-play-services_lib could not be found importing project

您还可以查看官方网站如何从 Eclipse ADT 迁移到 Android Studio,这里是 link:http://developer.android.com/sdk/installing/migrate.html