How to install google play services in eclipse - android

I am using Eclipse Mars to develop Android applications. I want to use the API for access to Google Drive files. I have found that I must use Google Play Services
In theory, I have installed Google Play Services, according to what Android SDK Manager is telling in its console (revision 42 is the number that appears in the Android SDK Manager console)
I have assumed that this means that I should have a google-play-services.jar in the directory where Google Play Services is installed and this jar should be added to my Android project. But there is no such jar, but instead, some documents and sample source
Any idea on what I should do?

Related

How to add google play services to eclipce

I used to use old version of Google Play Services in my projects. But now I keep getting warnings when I upload my apps to Google Play. These warnings says that I have to update my Google Play Services.
I have the latest version of Google Play Services in SDK manager with Rev.49
In the last versions of Google Play Services, I can find the Google Play library in the following directory:
SDK --> /extras/google/google_play_services/libproject/google-play-services_lib/
But now there is no libproject/google-play-services_lib/. Where can I get the library?
Check out this answer: https://stackoverflow.com/a/37311511/8294916
Or the answer directly below it: https://stackoverflow.com/a/37356709/8294916
Hopefully you can migrate over to Android Studio, but if you're stuck with Eclipse because you're working on a legacy project, I feel for you! :(

Cordova add google play services

I just added OneSignal to my Cordova project. This appears to use Google Play services i.e. (I get a message "No valid Google Play services APK found"). I was wondering the best approach for adding it.
I have Google Play services v8.4.89 installed on my phone.
I have Google Play services installed via the SDK manager:
This creates a google_play_services folder (without a lot in it):
UPDATE
As per this Google has broken down Google Play Services into multiple libraries (.aar) located at:
android-sdk\extras\google\m2repository\com\google\android\gms
build.gradle dependencies:
I'm a little unsure of what to do next. I thought I could have potentially used this.
I might add I am using IntelliJ and have tried to import the JAR manually as per this.
Thanks,
The OneSignal error "No valid Google Play services APK found" means that the "Google Play services" app is missing from the device or is most likely just out of date. It should check the version under Settings>Apps. It should update automatically in the background after you open the Google Play store on the device and sign in. See the following link for more details.
https://documentation.onesignal.com/docs/all-users-are-shown-as-not-subscribed
You need to add it to your project library..
File >> Import, select Android > Existing Android Code into Workspace, browse to the library project (your android sdk env) to import it. extras/google/google_play_services/
After this.. you need to open the properties for your project..
Right click on your project and click properties select android and under the library section add the google lib.

google api client not resolving to a type,while integrating google plus in android app

I am done with the downloads of the respective libraries from https://code.google.com/p/google-api-java-client/downloads/list,
even then the issue is not being resolved,libraries i am referring are
and the sdk manager is:
google play services already imported

How to update google play in android

Good Noon to all
I'm developing an application which is based on accessing google account for login purpose of my own appplication.
If i run my application means it throws an error as
"Google Play services out of date. Requires 4452000 but found 3136130"
here is my screen shot
I faced the same problem, solution (for Eclipse) was:
remove local copy of google play service from workspace
open Android SDK Manager
delete google play service
install google play service
add local copy of google play service to workspace
Done!
If you search Google play Services in the google play store, you will find an app by google you have to download to get this functionality. If you have any problems, here's the link:
https://play.google.com/store/apps/details?id=com.google.android.gms&hl=nl
I've tried creating new emulators with the normal API levels (tried 17 and 19) and adding the apk from this thread but it doesn't seems to work after the update. I did get it to work though by creating an emulator using the Google API level 19.
To get it to work I think you need to do (assuming Eclipse):
Window->Android SDK Manager and make sure all is up to date.
Update the google play library you've imported to your Workbench
Create a new device (after updating) with Target Google API lvl 19
Then start the emulator and install your app. For me that made the map work. I think your problem is that you've updated the google play library to the newest while you created the emulator before that. Then it doesn't have the version installed you are using in your project.

Google Play Service library in Android

Hello I am trying to use google-play-services_lib in my android project. As you know in android phone there is Google Play Service APK which provide a some features to you such as location fetching etc.
So I have confusion that Suppose user have Google Play Service APK version is 4.3 and I am using Google Play Services library version is 4.0.30 in android project to build the app.
Do we require same version on both side like build with same latest Google play service library and Google Play Services installed APK to make as like Push Notification, Location fetching work in this case or there is no link between them ?
Thanks in advance
They don't have to match.
The development of the library and the application is not completely dependant, that's why thier version number is different. As far as I know, each release of the services apk defines a maximum version of the library that is supported. So the only conflict could happen when the services apk is outdated (on the target device), and your application's library is a newer one.
The best you can do is to update the library, and the services application on your device.
It should work that way.
I dont think so that there is link between APK and supported libraries in that because the APK silently gets updated about libraries

Categories

Resources