Add Google Play Services to Eclipse project
I found that the play services libproject has to be imported onto the same physical drive as your project. (check the ‘Copy projects into workspace’ checkbox when you import)
I found that the play services libproject has to be imported onto the same physical drive as your project. (check the ‘Copy projects into workspace’ checkbox when you import)
right click on the head of the project and create a new PACKAGE … call the package com.android.vending.billing ….drop the aidl file in there to quiet the error. Some food for thought: for those with an interest – when using someone’s aidl file, the package name for both apps must be the same. google used … Read more
Failed to resolve com.google.android.gms play-services-auth:11.4.0 . Add maven { url “https://maven.google.com” } to your root level build.gradle file allprojects { repositories { jcenter() maven { url “https://maven.google.com” } } } This maven repo is required starting from 11.2.0. You can also use the google() shortcut but check the requirements before using it. Also pay attention … Read more
I had similar problem and your question helped me solve mine and probably will help you solve yours. Problem is that you have defined: dependencies { … compile ‘com.google.android.gms:play-services-cast:7.5.0’ } and dependencies { … compile ‘com.google.android.gms:play-services:7.0.+’ … } Since google services 7.5.0, if you’re using single modules from play services you can’t use whole play … Read more
In your top-level build.gradle file you need to update the dependencies to use classpath ‘com.google.gms:google-services:1.5.0-beta2’ Extra Info: The latest version of this can be found by looking at the entry on JFrog Bintray Further Update: Yes this has been updated since I answered the question. The latest version is: classpath ‘com.google.gms:google-services:3.0.0′ However, it’s always worth … Read more
Here is the technique that I used: protected void setGooglePlusButtonText(SignInButton signInButton, String buttonText) { // Find the TextView that is inside of the SignInButton and set its text for (int i = 0; i < signInButton.getChildCount(); i++) { View v = signInButton.getChildAt(i); if (v instanceof TextView) { TextView tv = (TextView) v; tv.setText(buttonText); return; } … Read more
This logcat warning is caused by a bug introduced in Google Play Services 9.x. It can be safely ignored, I don’t believe it causes a crash, so your crash may be caused by a different issue. The message should go away with a future update to play services. This issue has been acknowledged by an … Read more
Finally I managed to run GoogleMapsAPIv2 project using Android Studio. EDIT: As mentioned by Xavier, this method is going to work for non-gradle based projects only. And UI part which was used in this tutorial will be excluded from AndroidStudio. So if you have your own project which uses Gradle build system, you need to … Read more
AFAIK, onMapReady() is triggered by a call to getMapAsync() on your MapFragment, and I do not see where you are calling that.
I just added right after the apply plugin: ‘com.google.gms.google-services’ at the bottom of my build.gradle : apply plugin: ‘com.google.gms.google-services’ // Work around com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true