Download Google Play Services_lib

 admin  
Active2 months ago
  1. Download Google Play Services Library
  2. Download Google Play Services Library For Android Eclipse

Select your project (not the Google Play services Library Project), then right click on it. Select Properties > Select Android tab from top left corner > In the Library Section Press Add Select google-play-services_lib project and press OK. You can see a green tick in the Library Section left to Google Play.

I have hit the magic dex limit because my application uses a lot of jars (drive API, greendao, text to pdf, support.. ).

Nov 16, 2017. Add Google Play Services to Your Project. To make the Google Play services APIs available to your app: Open the build.gradle file inside your application module directory. Note: Android Studio projects contain a top-level build.gradle file and a build.gradle file for each module. Be sure to edit the file for. Jan 13, 2014. Donwload it from the SDK Manager and then go to the folder ' sdk extras google google_play_services libproject google-play-services_lib'.

My current solution was that I literally created a second apk just for google drive which I called from the main apk. But now I found out that android finally supports this with this library. My problem is just that I don't know how to implement it(preferably without gradle). I can't find any good tutorials for it.

Okey I am losing my mind trying to implement this... I have found this

And I added:

To my manifest file and

To my mainactivity.java

Also installed gradle plugin for eclipse, exported gradle to get build.gradle file which I changed to:

But The error is still the same :(

Tadej VengustTadej Vengust
5533 gold badges11 silver badges28 bronze badges

3 Answers

The Blog was the old solution.

With Android Studio 0.9.2 & Gradle Plugin 0.14.1, you only need to:

  1. Add to AndroidManifest.xml:

.

or

Add

in your custom Application's attachBaseContext method

or your custom Application extend MultiDexApplication

  1. add multiDexEnabled = true in your build.gradle

.

Done.

Sorry for my poor English

Related Resources:

Download google play services library for eclipseEpicPandaForce
53.8k15 gold badges149 silver badges289 bronze badges
darktinydarktiny

There are a few things you have to do,

1- In your gradle you need to specify multidex and add the support library:

2- In your manifest you have to set your application to a multidex application:

Download google play services library for eclipse

3.1- In your application class you have to either extend MultiDexApplication:

3.2- Or Overide the attachBaseContext() method:

Limitations of the multidex support library

The multidex support library has some known limitations that you should be aware of and test for when you incorporate it into your app build configuration:

Download Google Play Services Library

  • The installation of .dex files during startup onto a device's data partition is complex and can result in Application Not Responding (ANR) errors if the secondary dex files are large. In this case, you should apply code shrinking techniques with ProGuard to minimize the size of dex files and remove unused portions of code.
  • Applications that use multidex may not start on devices that run versions of the platform earlier than Android 4.0 (API level 14) due to a Dalvik linearAlloc bug (Issue 22586). If you are targeting API levels earlier than 14, make sure to perform testing with these versions of the platform as your application can have issues at startup or when particular groups of classes are loaded. Code shrinking can reduce or possibly eliminate these potential issues.
  • Applications using a multidex configuration that make very large memory allocation requests may crash during run time due to a Dalvik linearAlloc limit (Issue 78035). The allocation limit was increased in Android 4.0 (API level 14), but apps may still run into this limit on Android versions prior to Android 5.0 (API level 21).
  • There are complex requirements regarding what classes are needed in the primary dex file when executing in the Dalvik runtime. The Android build tooling updates handle the Android requirements, but it is possible that other included libraries have additional dependency requirements including the use of introspection or invocation of Java methods from native code. Some libraries may not be able to be used until the multidex build tools are updated to allow you to specify classes that must be included in the primary dex file.

resources: http://developer.android.com/tools/building/multidex.html

Nicolas TylerNicolas Tyler
7,7722 gold badges32 silver badges60 bronze badges

According to the docs at https://developer.android.com/studio/build/multidex.html#avoid

If you're minSdkVersion is 21 and above, all you need to do is

if you're minSdkVersion is 20 or below, you need to use the support library

Along with

Sanket BerdeSanket Berde
4,3182 gold badges24 silver badges30 bronze badges

Not the answer you're looking for? Browse other questions tagged androidandroid-gradleandroid-librarydex or ask your own question.

Download Google Play Services Library For Android Eclipse

Active5 years, 6 months ago

I was following this tutorial to achieve support for Google Maps V2 on Android. Unfortunately during second step I didn't select copy to workspace option and I deleted project with extrasgooglegoogle_play_serviceslibprojectgoogle-play-services_lib directory. After that I have noticed that I remove google-play-services_lib.jar, but it still was present in SDK. I have deleted Google Play Services and installed them again, but still there is no google-play-services_lib.jar. What should I do?

nervosolnervosolGoogle
6683 gold badges19 silver badges40 bronze badges

2 Answers

Donwload it from the SDK Manager and then go to the folder 'sdkextrasgooglegoogle_play_serviceslibprojectgoogle-play-services_lib'

Alejandro CumpaAlejandro Cumpa
1,4841 gold badge17 silver badges38 bronze badges

Visit this site and download google play service https://code.google.com/p/google-api-java-client/wiki/APIs

VahidVahid

Not the answer you're looking for? Browse other questions tagged javaandroidgoogle-maps-android-api-2 or ask your own question.

   Coments are closed