Friday, September 30, 2016

How to import Android libraries from GitHub/dandar3 into Eclipse workspace

Showing you today an easier way of importing Android Support and Google Play Services libraries for Android from repositories into your Eclipse workspace.

Navigate to:

Choose the project you want to import (e.g. android-support-v7-appcompat).

Scroll down to SVN Checkout section, right-click the Team Project Set URL and choose Copy link to copy it to clipboard.

Switch to Eclipse then navigate to File > Import > Team > Team Project Set.

Paste the address into the URL field (if not already pre-populated from clipboard), then click Finish.

The download (import) may take a short while dependening on your Internet connection.

Once finished, wait for Eclipse to rebuild all projects or manually choose Project > Clean > Clean all projects and check the Start a build immediately both with Build the entire workspace option.

Then you can add the library (or libraries) as a dependency to your application.


  1. Great Dan Great Job,
    I get your job and I trasform it for use with Netbeans and ... works!
    So Now I can continue to use my Netbeans to compile Android 7 App
    I have extended your package, Im compiling a new library: google-play-services-location.jar (you miss!)
    I have used Netbeans 8.1
    Also this works!
    Thanks very much Dan!
    AZ2012 Rome IT

    1. You're most welcome, thank you! :-)

      Let me know if you want me to add google-play-services-location to the list.

  2. I forgot it's incredibile! You and I like working about the same subjects and ... hear the same music!

  3. Can you please tell how where I can find the google-play-services_lib directly with google-play-services.jar? thank you

    1. That was the old Google Play Services library that contained everything and was causing projects to hit 64K method limit, thus Google decided to split them into separate libraries and with the move to Gradle / Android Studio those are delivered as AARs.

      Use Android SDK Manager to download install Extras > Google Play Services and have a look at ANDROID-SDK\extras\google\m2repository\com\google\android\gms.

      Or have a look at the to import project sets directly into Eclipse (the same way as presented in the video in this post)

  4. I imported the libraries the way it said in the video but it is still not getting recognized in the import statement of the java class and gives error -"import not resolved". Could you please help? Thank you

    1. This is a well known step to most Eclipse Android developers - you need to add the library as a dependency to your app. Right click on your project > Properties > Android > Library section (bottom) > Add...