简体   繁体   中英

Download Google Play Services JAR

I have been out of touch with Android for considerably long time. Recently I had to develop an Android module for Appcelerator. I need to use the Google Play services. There is one present under extras folder where the JAR is present. After some search I found that there are also smaller size individual JAR files, for example google-play-services-base.jar and so on. I need to use google-play-services-analytics.jar.

Now the question is that as to from where can I download the JAR file (google-play-services-analytics.jar) and also get to know the version for it. Does it have any dependency on google-play-serivces-base.jar. I know this might be a basic question, but will appreciate the help.

From the Android SDK manager you can select and download Google Play services. The SDK manager will also tell you the path to your sdk so you can find the jar files. Google Play Services is under Extras in the SDK manager.

As stated in the comment below, the Play Services jar can be found in /app/build/intermedi‌​ates/exploded-aar/com‌​.google.android.gms/p‌​lay-services-analytic‌​s/9.4.0/jars/classes.‌​jar after you do a build of your project.

Update: as noted in the latest comment, this method will not work any more. Your best chance of getting a recent jar is by downloading it the official way . Eg https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/11.8.0/play-services-basement-11.8.0.aar . You can use it for the input.files for JavaExec as well as for -libraryjars during proguarding.

If you need to use the .jar file of google play services you need to use everything is google play services. Google does not provide individual jar files for specific parts of google play services like it does with gradle

Try this java google play service .jar file

http://www.java2s.com/Code/Jar/g/Downloadgoogleplayservicesjar.htm

--on Eclipse,
then left click on your project explorer -> under "Java Build Path"
Screen shoot (image view)

after add external jar, click OK
you will find the external library under "Referenced Libraries" in workspace explorer,

and continue fingers to rock.... ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM