Google play service resource not found

后端 未结 3 1026
自闭症患者
自闭症患者 2021-02-15 06:18

I have update SDK using SDK manger,after updating SDK \"google-play-services_lib\" not getting complied,Its showing following error.

**extras\\google\\google_pla         


        
相关标签:
3条回答
  • 2021-02-15 07:08

    This is the solution it worked for me (after a few hours):

    1) Unistall the Google Play Services Lib from "Android SDK Manager". It will ask you if you want to delete also the directory in your workspace. Answer "Yes"

    2) Download again the Google Play Library from the "Android SDK Manager" and follow the steps to import it to your workspace

    3) Set Android Target for google-play-services-lib for 5.0.1 (these are the versions for me worked)

    4) In the project you want to import, right click->properties->Android . Add again the google-play-services-lib library.

    5) Set Android Target for your project to 5.0.1 (the same case that point 3: I guess it can work for other versions)

    6) Only in case the above solution will not work, copy the android-support-v4.jar from <...>/sdk/extras/android/support/v4 to the "libs" folder of your project.

    I hope it works for you

    0 讨论(0)
  • 2021-02-15 07:13

    For the new Google Play Services, you need change the project target in the project.properties file (The Google Play Services Lib project, not your project):

    In the below file:

    google-play-services_lib/project.properties

    Change the below line

    target=**android-9*
    

    to:

    target=**android-23**
    
    0 讨论(0)
  • 2021-02-15 07:19

    This may fix your problem

    1. Right side click on your project select Properties -> Select Android
    2. Under Project Build Target, check *Android 6.0 or to the latest API.
    3. Build

    One important thing : While importing library projects always copy to your workspace.

    UPDATED:
    Reason : Most of time google play service lib access resources from lastest API available. that's why you need to target to the latest.

    0 讨论(0)
提交回复
热议问题