google-play-services

Duplicate entry: com/google/firebase/FirebaseApiNotAvailableException.class

雨燕双飞 提交于 2019-12-18 13:09:49
问题 I have an Android project built with React-Native and employing Google Play Services (analytics, cloud messaging, ads). I'm not explicitly using Firebase anywhere. Tried upgrading the Play Services from 8.4.0 => 9.2.0. Also upgraded the GPS classpath. buildscript { dependencies { classpath 'com.google.gms:google-services:3.0.0' ... dependencies { compile 'com.google.android.gms:play-services-analytics:9.2.1' compile 'com.google.android.gms:play-services-ads:9.2.1' compile 'com.google.android

How can I make the Play Game Services not automatically sign in at the startup?

好久不见. 提交于 2019-12-18 12:54:05
问题 Google provides the BaseGameUtils library, and recommend us to extends its BaseGameActivity. However, this class makes the game automatically sign in whenever the game is started. If the player does not want to or cannot connect to his Google account, this can be very time consuming at the beginning of the game. So I dont' want this feature. Instead, I want to provide a sign in button. The player is connected only when he click that button. And from that point on, every time the player starts

PRIORITY_LOW_POWER vs PRIORITY_BALANCED_POWER_ACCURACY for google play service v2

自作多情 提交于 2019-12-18 12:27:40
问题 I'm wondering for the fused location, does any of the above use a combination of gps + wifi network together? what is the difference in terms of provider (does any of it uses the gps)? from what i see in the documentation the difference is only distance I've previously worked with LocationManager and used NETWORK_PROVIDER and GPS_PROVIDER together to get a combination of those two provider. 回答1: The new fused location providers take a slightly different approach compared to previous methods.

After update - Error:Failed to find: com.google.android.gms:play-services:5.2.8

僤鯓⒐⒋嵵緔 提交于 2019-12-18 12:13:53
问题 Gradle project sync failed. After update the android SDK i got this error: Error:Failed to find: com.google.android.gms:play-services:5.2.8 I have checked that the sdk location wich is updated is used by android studio I've got Google Repository installed and Android Support Repository too all up 2 date. Also i have a ANDROID_HOME local variable pointing to the sdk im actually using 回答1: try using com.google.android.gms:play-services:5.2.08 instead of 5.2.8. you can also look for the right

Android: How to get Refresh Token by Google Sign-In API?

元气小坏坏 提交于 2019-12-18 11:53:54
问题 Currently, I am working on the application where user able to login with Google. As part of the login process, we need to send Google ACCESS TOKEN and REFRESH TOKEN to server end. I am retrieving access token by the following method, mAccountName = googleSignInAccount.getEmail(); String scopes = "oauth2:profile email"; String token = null; try { token = GoogleAuthUtil.getToken(activity.getApplicationContext(), mAccountName, scopes); } catch (IOException e) { Logger.eLog(TAG, e.getMessage());

How to update Google Play Services on the emulator in Android Studio

被刻印的时光 ゝ 提交于 2019-12-18 11:33:23
问题 Hi I am trying to run an Android Program I have created that can connect to Firebase with Authentication using email and password but it seems that I cannot even authenticate due to the fact of them saying my Google Play Service is not up to date. I am stump here as I have the latest google play services according to my SDK manager and I don't think it is my code's problem as when I use my friend's phone for debugging it works but not when I am using the emulator. How can I update my google

Excessive Alarm Manager wakeups in android with Google Play Services Location

一世执手 提交于 2019-12-18 10:33:32
问题 I received an performance report from Android Vital on Google Play Console about Excessive Alarm Manager wakeups: https://developer.android.com/topic/performance/vitals/wakeup.html I use Location API from Google Play Services to request for location updates in the background. On the report it show that the excessive wake up wakeups was caused by com.google.android.location.ALARM_WAKEUP_LOCATOR from LocationListener. Below the code snippet which causes the alarms: private synchronized void

Play Store updates/installs app using a different account than the one the user made IAP through

拈花ヽ惹草 提交于 2019-12-18 10:14:17
问题 On this bug report on github https://github.com/googlesamples/android-play-billing/issues/2#issuecomment-305380836 we were asked to raise the issue here. The issue is simple. User has 2 or more accounts on their phone, let's say xyz@gmail.com and abc@gmail.com. They install an app with account xyz@gmail.com. They purchase some IAP item. The app updates and now the app is under abc@gmail.com and the user has lost the purchase. This happens a lot when using staged rollouts. Main issue, as

How to use Google Play Services 6.5 granular dependency management

青春壹個敷衍的年華 提交于 2019-12-18 10:13:36
问题 This question is no longer valid. But answers may still be useful for others, so I will leave it here. Original question: In a blogpost from 17 november, Google guys introduced long awaited granular dependency management (to cope with dex method limit). We have december 8th and I still cannot download the sdk (6.1 is the latest available), nor get the documentation on how to introduce granular dependency. Any news on this one? Or an idea how to get it before it's officialy released? 回答1: Note

Android google play services duplicate entry

最后都变了- 提交于 2019-12-18 09:30:14
问题 I'm trying to use google services in my Android app, but I was getting the following error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_11\bin\java.exe'' finished with non-zero exit value 2 I was told to try adding multiDexEnabled = true and now the error has changed to this: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: