Gradle can't find play services after update android studio - android

I updated my android studio this morning and updated my whole android sdk. Including the extra's like play services and etc...
I always get:
Error:Could not find com.google.android.gms:play-services:4.4.52.
Required by:
ar-android:Ar:unspecified
Search in build.gradle files
Can someone help me out on this?

I had the same problem and solved it downloading a package from the Android SDK mananger.
Open the SDK Manager (from Eclipse or Android or the standalone version) and select the package 'Google Play Services'.

Related

Cordova failing to build on android

I'm attempting to build my android project via terminal. I have the /android-sdk/macosx in my downloads and I have the API 23 installed. I also have Google Play Services and Google Respository installed in Extras (within SDK Manager).
I'm receiving a build error when attempting to cordova build android as seen below. Am I missing something in my build setup? Any help is appreciated.
I solved this by running the SDK manager -> update for Android Support Repository -> Android Support Library

Android Studio accuses Google Repository is not installed in the SDK Manager

I am trying to add Google Maps on my Android project and I was following this instructions:
http://developer.android.com/google/play-services/setup.html
However, when I try to add
compile 'com.google.android.gms:play-services:5.0.77'
to my build.gradle, AndroidStudio says
Dependency on Play Services, but the SDK installation does not have the "Extras > Google Repositories" installed. Open the SDK Manager and install it.
The problem is that I have it installed already:
I have already checked on File > Project Structure > Android SDK location and I am using the correct SDK path.
Any ideas?
I had a similar issue with Android Studio and Android SDK manager. In my case Google Repository didn't show up in the list, so after searching a bit i ended up reinstalling Android Studio, and it worked.
I recommend you to wait a bit, maybe someone can provide a simpler solution.
If you can't wait, just reinstall Android Studio. A clean updated installation should fix the problem.
It happens that I was trying to add the dependency to the top-level build.gradle, where it somehow said I needed the Google Repository.
I added the code to the "inner" (application) build.gradle and it still did not work. I had to set my minimum SDK to 10 (instead of 8), so it worked.
Silly mistake, and it took me hours to figure out.

Android Studio: "SDK installation does not have the "Extras > Android Support Repository" installed" BUT IT HAS BEEN INSTALLED

I created Android Project but then I immediately get information that there have been errors.
Warning:(22, 12) Dependency on a support library, but the SDK installation does not have the "Extras > Android Support Repository" installed. Open the SDK manager and install it.
But I installed it, it was installed at the installation of Android Studio. I created another project and it happen again.
This is bug https://code.google.com/p/android/issues/detail?id=68834 and will be fixed in 0.5.9. In the meantime you can ignore the warning.
For me it was a very silly error and I spent the last two days trying to get around this. The path to the SDK in local.properties file was not properly escaped.
Change this:
# Location of the android SDK
sdk.dir=C:/Android/sdk
to this:
# Location of the android SDK
sdk.dir=C\:/Android/sdk
Refresh the gradle again.
When you download Android Studio you have 0.5.2 version,There is a solution is to downgrade exactly to 0.5.4
and download from here : Android Studio 0.5.4
after download the file just drag and drop in the place where you installed Android studio 0.5.2
Unfortunately, this bug appears to have resurfaced since it was last fixed. I have filed a new bug report to track it:
https://issuetracker.google.com/issues/37592307
Please "star" the bug report if it's affecting you.

MapWithOverlaysActivity - Could not determine $(TargetFrameworkVersion)

I have downloaded Xamarin Studio and am trying to use the MapsAndLocationDemo3 sample with the MapWithOverlaysActivity project.
I am getting the following error:
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error XA0000: Could not determine $(TargetFrameworkVersion) for API level '19.' (XA0000) (SimpleMapDemo)
In the Android SDK Manager I have installed all the options for Android 4.4 (API 19) as well as the Google Play services.
Can I please have some help to get this sample working?
Thanks
Hopefully you've figured this out by now since it was posted quite some time ago.
I had this issue this evening. I was able to resolve it by opening the .csproj file in something like Notepad++, changing AndroidUseLatestPlatformSdk from True to False, and rebuilding. If your issue is the same, hopefully this will help.
Uninstalling my existing Xamarin.Android and reinstalling the latest fixed the this issue for me
Ensure that you have the correct version of the SDK installed.
In Xamarin Studio, go to the project options and click on General. The Target framework field should show the version of the SDK that will be used to build the project.
If the SDK is not installed, the field will have something like Android X.Y (not installed). From Xamarin Studio go to Tool > Open Android SDK Manager and make sure that you installed the required SDK.

google-play-services_lib.jar missing after updating to latest version (3.1)

I've been using Google play services in my app for a while with no prob. I'm using Eclipse. I've updated play services(and ADT and SDK) to the latest version after I/O and now I can not get my app to build. I have added the google-play-services_lib project to my app as a library project. However when I go to the java build path for my project I get a red X next to google-play-services_lib under android dependencies. It is looking in the /bin/ dir for google-play-services_lib.jar, however it is never build. Anyone run into this issue?
Converting comment to answer
After updating Android SDK and ADT make sure you have Android Build tools installed.
Goto your android sdk manager check if Andorid Build Tools is installed. If not installed install the same.
So simple, I don't know how I missed it. Right click on the project library and select build project. I forgot I had turned project > build automatically off.

Categories

Resources