Missing libraries in Google Play Services Revision 30
Guys,
I have installed Google Play services via SDK Manager.
The libraries related with it is supposed to be found in the location "/extras/google/google_play_services/libproject/google-play-services_lib/". However, there is no folder "/extras/google/google_play_services/libproject". There are only :
docs
samples
Where are those libraries?
Facing the same issue - have yet to find a solution to this aside from someone mentioning that Google moved the lib to: Android\android-sdk\extras\google\m2repository\com\google\android\gms\
but there are many sub folders in there that are not structured nicely to implement previous workarounds for Ad$$anonymous$$ob - please update this if you figure it out, thanks!
Answer by Athalos · May 27, 2016 at 07:44 PM
Hey guys,
After some digging, I did get Admob working. A guy over on stackoverflow was kind enough to link to the google_play_services_r28 folder - Download here
I copied this into the unity project under plugins>android as mentioned above. Had to do the usual Manifest hack, but after all that, ads were up and running!
$$anonymous$$y game is building successfully thanks to your solution, but for some reason ads are not served. Banner or interstitial both don't work.
Ok, a small update. I've tried to build my game for Android for the 2nd time and have received the same re-packaging error as before.
Not sure if you know or not @PhillipBelov ... but ads will not display in the editor - but you will get a debug log statement simulating them.
In terms of the the repackaging error - make sure you edit the manifest in the unity project folder - you have to remove all references to style - you can comment out the xml or just delete it all together, it should build then. I had to delete the manifests from the temp staging area too but that was more cause of trial and error I think...
Yeah, I know. But I've been running a game on the device itself. Yes, of course, I've edited it. It's just so strange and stupid: the project was built for the first time and failed to be built for all the next ones.
I tried to remove files from the staging area, but, unfortunately, it didn't help.
Thank you for this, my game now builds. I was having the same issue, and was banging my head against the wall trying to find google-play-services_lib/res/values.
Answer by 007belon · Jul 08, 2016 at 11:33 AM
Hello, My problem is solved with this way just copied play-services from "...android-sdk\extras\google\m2repository\com\google\android\gms" to the plugins>android on unity and the ads works finely. my problem is when i have the ads my game have some bugs :/
Answer by deerslug · May 23, 2016 at 07:37 PM
Hi @ErayT,
What exactly are you trying to do? Ie: using the leaderboards?
I just got play services working today by copying the \play-services folder over to Plugins>Android
Android\sdk\extras\google\m2repository\com\google\android\gms\play-services
I was trying to add Google Ads. I will check your way later but I am not sure it will be soon.
I was just using leaderboards, but let me know how that goes. Just curious what's the difference between unity adds and google adds?
They are different ads services, different companies. Their advertisement pools are distinctive.
I have such problem with Ad$$anonymous$$ob SD$$anonymous$$. Copying play-services folder doesn't help.
You could try adding the "play-services-ads" folder and see if that changes anything, what error are you getting?
Yeah, actually that was my next step. But it didn't work either. I got the same errors.
Answer by jure006 · May 26, 2016 at 10:14 AM
That't what i want to know! What's wrong with Google Play Services, revision 30... Why library is missing and why i getting this error on build: "failed to re-package resources" :((
Answer by SongAngel · Jul 06, 2016 at 03:40 PM
The lib project is still missing in revision 31 and Googles sorry documentation still shows it to be there but it is not. I'm using an older version myself until/unless they get it together. It's amazing to me that anyone is able to build anything for android at all with the state of things.