Missing "<sdk>/extras/google/google_play_services/libproject" folder after update to revision 30

AndroidGoogle Play-Services

Android Problem Overview


I updated the Google Play Services version from the revision 29 to 30 using the Android SDK Manager, but after updating the directory "<sdk>/extras/google/google_play_services/libproject" disappeared, leaving only the directories "docs" and " samples".

I've tried uninstall and reinstall several times but always happens to miss the directory "libproject".

Anyone had this problem with the update?

I'm using Debian Linux 8.4 (jessie) although not believe it has anything to do with the problem.

Android SDK Manager screen

google_play_services directory screen

Android Solutions


Solution 1 - Android

Looks like Google just broke down Google Play Services into multiple libraries. You'll find them in <sdk>/extras/google/m2repository/com/google/android/gms, if you also updated Google Repository through the SDK Manager.

The individual libraries are in aar format, so you'll have to extract the jar yourself, if that's what you're after.

Solution 2 - Android

I am working on a legacy project in Eclipse and I fixed the problem a slightly different way than the others. For me using the project from Google Play Services revision 29, had all sorts of dependency problems which I could not resolve. For example it wanted the compatibility library v4 so I imported it but even then it could not find some required resources.

However, I was able to use Revision 28 without such issues and set the minimum version of my app to be ICS. Below is a link to version 28. Download it, unzip it and extract the libproject folder to where it would normally have been prior to removal.

Import the project in Eclipse (ensure copy files is selected) the usual way and all will be fine.

https://dl-ssl.google.com/android/repository/google_play_services_8298000_r28.zip

Solution 3 - Android

For now I downgraded back to revision 29 (and worked well) using the version history available on this site: http://www.smorgasbork.com/2015/01/05/google-play-services-sdk-version-history

I believe it is possible that this is the new format that Google will provide the libs (in .aar files) up because of the description of the update:

enter image description here

The revision number 29 says "client library and sample code" and the revision number 30 says "javadocs and and sample code".

Solution 4 - Android

The m2repository folder contains aar files used for android studio. If you look at the samples folder and open some of the sample apps project.properties file you will see that the sample apps still reference the google-play-services_lib. This is for sure to be fixed by google, I saw also people complaining about display ads problem, so maybe they will come back with an update quite soon.

Solution 5 - Android

I posted a question about this in the Google Mobile Ads SDK Developers forum. Summarizing the steps in the answer (from Veer Busani, Mobile Ads SDK Team):


We would never recommend you to rename/edit any part of the Android SDK. If you find any issues, do let us know and we would look into it. As to your Mobile Ads/Unity/Android integration, I will certainly help you. Please follow these steps if you are on Google Play Service revision 30.0 (v 9.0) -

  • Make a new project and import the Mobile Ads Unity package.
  • Copy our demo script, make a new empty GameObject and add the script as the component.
  • Right click on Assets > PlayServicesResolver folder and select Google Play Services > Resolve Client Jars.
  • There is a known issue with GMS revision 30 in Unity. To build for Android, you would need to select Assets > Plugins > Android > firebase-common-9.0.0.aar file and in the Unity Inspector, deselect Android under the Platform for Plugins sections.
  • Finally, edit the Bundle Identifier in your Player Settings and deploy your awesome project to your Android device.

This worked.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionjefferson_amaralsView Question on Stackoverflow
Solution 1 - AndroidCigogne EveilléeView Answer on Stackoverflow
Solution 2 - AndroidAndrew SView Answer on Stackoverflow
Solution 3 - Androidjefferson_amaralsView Answer on Stackoverflow
Solution 4 - AndroidSava MikalačkiView Answer on Stackoverflow
Solution 5 - AndroidfaddenView Answer on Stackoverflow