google-play-services

Cannot build app with Gradle with flavors and com.google.gms.google-services plugin

99封情书 提交于 2019-12-24 10:50:05
问题 When i try to compile my app with flavors based on minSdk i receive an error: Error:Execution failed for task ':app:processCurrentDebugGoogleServices'. Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 10.2.0. I pasted example from Android Developers Blog and it's not

GoogleSignInOptions, GoogleApiClient bind service ServiceConnection Crash

﹥>﹥吖頭↗ 提交于 2019-12-24 09:39:51
问题 I have added Google sign in as given in link and Integrated using Start Integrating Google Sign-In into Your Android App In login activity OnCreate method init it as illustrated in above link. // [START configure_signin] // Configure sign-in to request the user's ID, email address, and basic // profile. ID and basic profile are included in DEFAULT_SIGN_IN. GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getResources().getString(R

Cursor leak on Google Play Services

主宰稳场 提交于 2019-12-24 09:39:23
问题 I've been trying to track a cursor leak on my code and this is the only thing that strict mode is giving me. Anyone have any idea what piece of Google Play Services is causing it? Thanks. E/StrictMode: Finalizing a Cursor that has not been deactivated or closed. database = /data/user/0/mypackage/databases/google_app_measurement_local.db, table = null, query = select count(1) from messages `android.database.sqlite.DatabaseObjectNotClosedException: Application did` not close the cursor or

How to use Google Maps Android API by Google Play Services 11 on an Emulator with Android 8

你离开我真会死。 提交于 2019-12-24 08:21:59
问题 I want to run my Google Maps Application on an Android 8 Emulator. As Google is suggesting, one should use the Google Maps Android API provided by the Google Play Services in the Version 11. For this I put compile 'com.google.android.gms:play-services-maps:11.0.0' in my gradle file. When I start my emulator with android 8 its only providing google play services with version 10.9.30 and the map is not showing up. I'm running the emulator with android studio 2.3.3 on Mac. How can I get my

After the last sdk update, android studio can't find any google play service or firebase library

白昼怎懂夜的黑 提交于 2019-12-24 06:12:19
问题 I had a working project, but yesterday I updated the android sdk and sdk tools. and suddenly I'm getting Failed to resolve: com.google.android.gms:play-services-maps:10.2.0 Failed to resolve: com.google.firebase:firebase-messaging:10.2.0 Failed to resolve: com.google.firebase:firebase-core:10.2.0 This is happening in all my android projects! Even in an ionic project, that was also working fine, now it is giving me Could not find gradle wrapper within Android SDK. Might need to update your

Android Studio 2.2.2: Failed to resolve Google Play-Services

前提是你 提交于 2019-12-24 05:47:09
问题 I was trying to create a demo project based on Google Map, for this I was using MapsActivity provided by android studio. Everything is fine excluding the Google Play services. Android studio is failed to resolve play-services and throwing an error- Error:(27, 13) Failed to resolve: com.google.android.gms:play-services:9.4.0 Install Repository and sync project Show in File Show in Project Structure dialog Project Gradle // Top-level build file where you can add configuration options common to

Unable to execute dex: Multiple dex files define Lcom/google/android/gms/ads/AdActivity;

浪子不回头ぞ 提交于 2019-12-24 04:37:06
问题 I'm trying to use google play services in my app. i have referenced the library, google play serves, in both my app and BaseGameUtils and I have Unable to execute dex: Multiple dex files define Lcom/google/android/gms/ads/AdActivity; " usually what that means is that you have two .jar files that have the same class name. My only problem is I don't know which jar files have the same classes. Also, I do not have google-play-services as a jar in my libs folder nor have i added it as an external

Failed to resolve Android.App.fragment with link SDK assemblies only enabled

余生长醉 提交于 2019-12-24 03:55:29
问题 I'm getting the following error after adding Google Play Services to my application. I have Link SDK Assms Only enabled and it is critical to keep it enabled. Sample here: https://dl.dropboxusercontent.com/u/19503836/so_googlemaptest.droid.zip C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly. Mono.Cecil.ResolutionException: Failed to resolve Android.App.Fragment at Mono.Linker.Steps.MarkStep

How do I change the text shown in GooglePlayServicesUtil.getErrorDialog()?

不问归期 提交于 2019-12-24 03:55:14
问题 I am trying to follow the gcm tutorial from Googles docs. They say to call this method if Play Services are out of date: GooglePlayServicesUtil.getErrorDialog(resultCode, activity, 9000).show(); That's fine, but it puts a dialog that says "This app won't run unless you update Google Play Services" with an "Update" button. I want to change the title and the message text. My users CAN skip the update, and the app will still run. They just won't get push notifications. How do I change the

Google Play Games not allowing user to join turn-based match

守給你的承諾、 提交于 2019-12-24 02:54:07
问题 I create a turn-based match and proceed to invite a single opponent as follows: GPGMultiplayerConfig *config = [[GPGMultiplayerConfig alloc] init]; // We will automatically match with one other player config.invitedPlayerIds = @[self.opponent.googlePlayID]; config.minAutoMatchingPlayers = 0; config.maxAutoMatchingPlayers = 0; [GPGTurnBasedMatch createMatchWithConfig:config completionHandler:^(GPGTurnBasedMatch *match, NSError *error) { if (error) { completion(NO); return; } }]; After this