How to add google play services libarary? - android

I need to install google play service library for my android project. I am using ADT version 22.3.0. But, the problem is that 'Google Play Services Library' is not available under 'Extras' in SDK Manager. And when I open ecllipse after updating SDK tools to latest version, eclipse give me error:
" This android sdk requires ADT version 23.0.0 or above. Current version is 22.3.0. Please update ADT to latest version."
And when I check for updates, then it says no updates available. Can one please help me.

I uninstall ADT from eclipse, and after that I lost my eclipse
Restart your eclipse, and updating SDK tools to latest version, then under Extra tab you install google-play library

Related

I can't update sdk manager ' packages

I installed Xamarin on Visual studio 2013. I Unfortunately get the error: " The installed Android SDK is too old. Version 25.1.3 or newer is required. Please update to the latest version." I updated to latest version but still it isn't the version that is needed for Xamarin!!! The SDK tools is v25.2.4, the Platform-tools is v25.0.2, the build-tools is v25.0.2.
I open sdk manager to update these packages but the link doesn't work!!
Is there any other way to resolve this sticky error??
Google has filtered some countries to access these important installations and updates. Using a VPN is the solution.
Good luck.

Cannot find google play services or android support library in SDK

I am not new to android development or android SDK, I have been using it for years. Today I decided to get the latest SDK from google, so I downloaded it, installed api 21 SDK platform, and other stuff, however, I cannot find the Android support library or Google play services in SDK manager or the SDK folder (google play services shows up in the SDK manager, but not in the SDK folder)
what is wrong with this?
]
Also I tried installing the latest SDK again from scratch 4 times
Check Under Tools, select Android SDK Tools and Android SDK Platform-tools and update.
Once updated, restart your SDK Manager. Android Support Repository will now be available under Extras.
Please check in the android SDK Manager there is a Google Play Services is selected or try to update it again
And make sure you put them in gradle
android{
}
dependencies{
classpath 'com.google.gms:google-services:3.0.0'
}
Your screenshot looks ok.
Make sure you also install "Google Repository" and "Android Support Repository"
After you have downloaded them you'll need to restart Android studio and add the dependencies in your gradle file.

Target SDK not showing above 18 in eclipse

When creating a new android project, the target SDK does not show above 18. I have gone into the Android SDK Manager and updated everything up to version 21. Now when I start eclipse it comes up with the error "The Android SDK requires Android Developer Toolkit version 23.0.o0 or above. Current version is 22.3.0. Please update ADT to the latest version.".
So I check for updates and then it tells me there are no updates found. Has anyone else had this problem and know why possibly it finds no updates when it is specifying one needs to be made?
Also, I tried this link, This Android SDK requires ADT version 23.0.0 or above. Current version is 22.6. Please update ADT to the latest version?. The below gets me to install 23.0.0 but I keep getting dependency errors. There is a comment to uninstall the 22.3.0 versions but if I take that route it completely uninstalls eclipse as well. Text from that article below:
"You can also update the ADT plugin
Select Help > Install New Software
Work with: p2repo - https://dl-ssl.google.com/android/eclipse/
Select Developer Tools and Next
Next, Accept the license agreement* and Finish"
UPDATE: The quickest resolution I found to this, to at least be able to start a new project and target the newer SDKs, was to just download the newest Android SDK bundle. This downloaded all of the latest that I needed.
There can be many issue.Did you restart you eclipse.If not,try it.Your eclipse may be outdated.Eclipse should be kepler or mars or Your ADT didn't properly updated.So you have to update again from where it was.

Attempt to start android fails - tools need to be updated or installed

I see this on the forum, but unlike the hit on the forum where a version update was required to resolve, I believe my software is up to date.
Under Windows 7, Android SDK Manager shows:
android sdk tools 21.1 Installed
Android sdk platform tools 16.0.2 Installed
SDK path c:\users\owner\documents\adt-bundle-windows-x86-20130219\adt-bundle-windows-x86-20130219\sdk
When I try to begin a project via 'file-new-Android Application Project', the panel reports
---The tools need to be updated via the SDK Manager
---Tools installed out of date or not installed
Any direction on this would be appreciated.
OK. I had viewed this Eclipse ADT and find out the way to get around this issue and able to Update My SDK Tool to 21.1.0.
Solution is : First Update ADT to 21.1.0 and Then Update SDK Tool to 21.1.0
Actually, above link Says,
ADT 21.1.0 is designed for use with SDK Tools r21.1.0. If you haven't already installed SDK Tools r21.1.0 into your SDK, use the Android SDK Manager to do so.
So, What i have to do is to update my ADT to 21.1.0(Latest Version) and then was able to update SDK tool to 21.1.0. i thought only SDK Tool has been updated Not ADT. so i was Updating the SDK Tool with Older ADT Version(21.0.1).
How to Update your ADT to Latest Version?
In Eclipse go to Help
Install New Software ---> Add
inside Add Repository write the Name: ADT (as you want)
and Location: https://dl-ssl.google.com/android/eclipse/
after loading some time you will get Developer Tools and NDK Plugins
check both if you want to use NDK in the future or check Developer Tool only
click Next
Finish
Copied

Where is Google Play billing package?

Following billing integration tutorial, I should now install Google Play billing package from SDK manager (see figure 1). However, in my SDK manager I don't have this package listed under Extras nor anywhere else.
Where can I get this billing example?
I also face this problem this morning but I finally solved it.
To solve it, update your ADT plugin to the latest version,
you should able to see the packages then.
After updating the ADT plugin, you may also need to update installed tools to the latest version to ensure you existing projects can run normally.
Via SDK Manager, I updated Android SDK Tools and Android SDK Platform Tools, re-ran SDK Manager, and the billing package then appeared under Extras as expected.

Categories

Resources