I installed Google Play services via Eclipse and the SDK Manager, everything went right. Now, I wanted to add the library to my project like it is said on the official website, but I can´t find it.
There is no folder "extras" in the Android SDK or on my PC.
Where is my mistake?
Had the same problem as you, sorted it by updating my Android SDK tools to rev. 23, my Android SDK platform tools to Rev 20, and restarting the SDK manager.
Happy coding.
Related
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.
So basically I can't find the option to install/download the Google Play Services in the Extras folder of the Android SDK Manager. What could be the possible reasons ?
Meanwhile can somebody provide the link to download the lib from the Web ?
I had the same problem and finally figured out a solution that worked for me. Here's what I did:
Go to Help -> Install New Software.
My android environment was already set up, so I picked "https://dl-ssl.google.com/android/eclipse/" from the drop down menu
Check the top level option - "Developer Tools"
Hit the next button and follow the prompts. It said I already had it installed and this would apply an update
Ran the SDK Manager again and it now showed me the Google Play Services option to install
Same problem, there are only 2 items (Android Support Library and Intel Emulator Accelerator) in my Extras folder...
I running Windows 8.1 64bit , so maybe a bug..
Solution:
Step 1: Update everything you already have installed using the SDK manager
Step 2: Reopen SDK manager, you should see more stuff under extras including Google Play Services.
where are you looking for Google Play Services?
After installing it via SDK Manager, you can get it in your SDK folder extras/google/google_play_services
You have to import it first in your IDE and then include in your project as a library project.
If your at SDK 19 you may not have it show because your SDK is too low, at least it was the case for me. I was offered it among 17 other install recommendations after upgrading to SDK 20, SDK Tools 23.
Downloading new version of adt solved my problem
i had the same problem and i solved by install the last SDk update and build tools and the
google_play_services appear in tools folder to download
here is the solution i got it. please download new version of the android adt bundle and extract the folder then go to the folder right click the sdk manger and run at administrator and restart your system open eclipse go to sdk manager under extras folder you have google play services finally update it.
Open your SDK Manager and update Android SDK Tools. I had the same problem and this solved.
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.
So I just attempted some sort of update using the SDK and AVD Manager in eclipse. I think I just clicked update all, and installed an update. After I installed this, I restarted eclipse, but when it started up again, I got an error message saying that I need to update my ADT to the latest version (14.00) and that mine is version 12.00.
But when I try to go to the SDK and AVD manager to update the ADT it says Location of the android SDK has not been set in the preferences
So then when I go to preferences and look at the SDK location it says This Android SDK requires Android Developer Toolkit version 14.0.0 or above. Current version is 12.0.0.v201106281929-138431. Please update ADT to the latest version.
Do I need to somehow manually update the SDK? I am not really sure what happened here. Thanks in advance for any help.
I recently had this issue and what I did was completely remove the ADT, SDK's, tools, everything and then re-install and update. I did not have to delete Eclipse though.
EDIT:
Here is a link to the AVD revision information site. If you look at the different versions, it will tell you the required SDK tools version. When this happened to me, I remember it saying something like "if you have less than version 14 then you must update manually" ... but I was unable to find it.
Here is a link to the SDK tools revision information site.
I have successfully installed Level 13 (3.2) during the Android SDK installation, but chose not to include any earlier levels at that time.
I now would like to install 2.2 or 2.3, but in the SDK / AVD manager I get the message:-
Failed to fetch URL
https://dl-ssl.google.com/android/repository/addons_list.xml, reason:
File not found
I've looked this up in other posts and so run the SDK manager with Administrator permissions, and have turned off the firewall. Eventually, it comes back with SDK tools revision 15, and SDK PLatform tools revision 9 only.
Should I have installed earlier packages during setup?
Would an uninstall / reinstall cure this behaviour? (Reluctant to do
this :-( for obvious reasons)
Is it possible to get earlier levels having installed just level 13?
Any help would be greatly appreciated. Thanks for looking.
Old Android SDK tool (r13 and earlier) fetch/download available SDK from here repository, after google release r14 and r15, they remove all SDK verion and only leave r15 in this URL, that means they want you use the latest SDK tool r15.
New Andorid SDK tool (r14 and r15) fetch/download available SDK from a new URL repository-5, which contains everything downloadable.
If you are not using anything else like Maven (currently incompatible with latest ADT) with your project, the simplest answer is upgrade both your Android SDK tools and ADT Eclipse plugin.
I just setted up my android environment yesterday - try to download the package manually and load them as Archive files, this worked for me! ;)