Android Studio - Library reference ../google-play-services_lib could not be found importing project

前端 未结 6 1062
一个人的身影
一个人的身影 2021-02-01 17:01

I am trying to import from Eclipse to AndroidStudio a project of mine and I am getting the following error

\"error

6条回答
  •  眼角桃花
    2021-02-01 17:32

    An alternative is to simply set the path. You'll need to have installed play services via the Android SDK to use it with Android studio anyway.

    Once play services are installed, if you highlight the Google play services entry in the Android SDK manager it will show you the path to the install location. On MAC this is normally something like /Users/[homedir]/android-sdks/extras/google/google_play_services/libproject

    Edit the path in project.properties to point to this file and it will import. You can then update your gradle build file as necessary.

提交回复
热议问题