google-play-services

Error: package com.google.android.gms.appstate does not exist

走远了吗. 提交于 2019-12-12 10:53:17
问题 Can't compile my android project because of this error. /BaseGameUtils/src/main/java/com/google/example/games/basegameutils/GameHelper.java Error:(32, 39) error: package com.google.android.gms.appstate does not exist Error:(293, 28) error: cannot find symbol variable AppStateManager Error:(294, 30) error: cannot find symbol variable AppStateManager Error:Execution failed for task ':BaseGameUtils:compileReleaseJava'. Compilation failed; see the compiler error output for details. Information

Implementing Google Analytics 7.5.0 (Play Services) in Android 4.4 and below crashes

我是研究僧i 提交于 2019-12-12 10:44:40
问题 After I implemented Google Analytics my app crashes instantly on devices older than Lollipop. 07-22 15:42:43.831: W/dalvikvm(1815): VFY: unable to resolve virtual method 16407: Lcom/google/android/gms/analytics/internal/zzg;.getApplicationContext ()Landroid/content/Context; 07-22 15:42:43.831: D/dalvikvm(1815): VFY: replacing opcode 0x6e at 0x0003 07-22 15:42:43.831: I/dalvikvm(1815): Could not find method com.google.android.gms.internal.zzld.zzoQ, referenced from method com.google.android

maximum number of testers on google play alpha/beta testing

一个人想着一个人 提交于 2019-12-12 10:43:04
问题 My app has not been released yet. What is the maximum number of alpha/beta testers I can have testing my app through Google Play? For iOS it's 1000 external testers per build. What's the Google Play limit? 回答1: There is no effective limit (although there are membership invite limitations for Google Groups): Facebook, for example, uses alpha and beta channels for millions of users. 回答2: Here is a good link for reference https://support.google.com/googleplay/android-developer/answer/3131213?hl

Google+ sign in for android not working, error code 4

六月ゝ 毕业季﹏ 提交于 2019-12-12 10:19:32
问题 I have followed the guide on how to setup google+ sign in. I did every step and basically copy and pasted the code. Here is the scenario. I develop on two different computers. I have two different client-ids in my console. One for computer A and one for computer B. When i install the application and launch it, it will attempt to sign in and fail with the following error from logcat. If i back out of the app and re-launch, it will then sign in fine. When it fails, it will seem to be trying to

Importing “google-play-services_lib” into Eclipse crashes libgdx project

China☆狼群 提交于 2019-12-12 10:17:59
问题 I am trying to add google ad banners for my libgdx android game. After following the guide https://github.com/libgdx/libgdx/wiki/Google-Mobile-Ads-in-Libgdx-(replaces-deprecated-AdMob) and importing "google-play-services_lib" the game can't be started anymore. I am using Eclipse Luna. Eclipse keeps loading until death. 回答1: For the proper import do it this way: File -> Import -> Existing Android Project -> Browse the "google-play-services_lib" folder then make sure you have checked the "Copy

Save data to cloud in android game

早过忘川 提交于 2019-12-12 09:15:22
问题 I'd like to save some data (just a few Integers) to the the cloud in an android game. The data represents the ingame currency, so its critical the user cant delete or manipulate the data himself. I already use google play services for multiplayer, leaderboards etc. I'm a little bit confused by the amount of services google provides for saving data to the cloud, so maybe someone can clear things up a bit for me. If im not mistaken these services dont fit my needs: Google Saved Games (Snapshot)

Google Identity Platform: Using OAuth 2.0 in Powershell using Firebase Admin SDK private key

此生再无相见时 提交于 2019-12-12 09:06:06
问题 Attempting to implement Firebase Admin SDK service account access using Powershell HTTP/REST and following this tutorial (there's no handy API in Powershell); Using OAuth 2.0 for Server to Server Applications Forming the JWT header and JWT claim set are straightforward enough and I can reproduce the examples in the tutorial, however this is where it gets tricky; Sign the UTF-8 representation of the input using SHA256withRSA (also known as RSASSA-PKCS1-V1_5-SIGN with the SHA-256 hash function)

com.google.android.gms.games.GamesClient cannot be resolved

前提是你 提交于 2019-12-12 08:57:48
问题 I´m trying to develop a real-time multiplayer game using google play game services and I download the sample(ButtonClicker2000), but Eclipse ADK keeps complaining that com.google.android.gms.games.GamesClient cannot be resolved. All of the other imports work fine: import com.google.android.gms.games.Games; import com.google.android.gms.games.GamesActivityResultCodes; import com.google.android.gms.games.multiplayer.Invitation; import com.google.android.gms.games.multiplayer

Is it possible to simulate detected activities for the ActivityRecognitionApi for testing purposes?

余生长醉 提交于 2019-12-12 08:43:51
问题 Google Play Services provides an ActivityRecognitionApi that lets you detect various user activities (via DetectedActivity) such as if the user is walking or running. Is it possible to mock these activities for development and testing purposes? 回答1: Yes, it's possible, but only on the emulator (or a rooted device). For example, to simulate the walking activity run: adb root adb shell am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e 'location:mock_activity_type'

How to style Google app invites screen

僤鯓⒐⒋嵵緔 提交于 2019-12-12 08:40:51
问题 We have implemented Google App Invites on Android. It's working but doesn't look as an integrated part: the gray status bar, the blue toolbar and the default font just don't fit with our app. And the blue toolbar doesn't look like a native part of the OS either. How can we can set the status bar color, toolbar color and the font? 回答1: Currently the invite page cannot be customized. However, the invitation can be fully customize with HTML starting with Google Play Services 8.4.0. 来源: https:/