google-play-services

Why does IntelliJ IDEA 13 require both lib project and lib itself (google-play-service) to be added as a dependency?

妖精的绣舞 提交于 2019-12-25 02:19:50
问题 Reading Google instructions, I found that I have to import and reference the Play Service library into the project. So I created a project, copied google-play-service_lib project, imported it as a library project, went to the main project and added this library as a Module dependency . However, I still have an error that IntelliJ IDEA does not recognize package com.amazon.device.ads.* . So I had to add a library dependency as well, although this library already exists in the /lib directory of

Only One Participant ID in onTurnBasedMatchReceived()

喜你入骨 提交于 2019-12-25 02:16:29
问题 When the other player makes a turn, I am successfully receiving an "onTurnBasedMatchReceived()" update, but in the match details there is sometimes only my own participantId. Without knowing the other player's ParticipantId, I cannot do a takeTurn and pass the ID to the other player. Why do I sometimes not get the other player's ID and sometimes I do? 回答1: If you've auto-matched with a random opponent and not taken the first turn yet, then you will only get one Participant Id. Just pass in

java.lang.NoClassDefFoundError: org/robolectric/internal/ShadowExtractor

穿精又带淫゛_ 提交于 2019-12-24 23:03:37
问题 Using testImplementation 'org.robolectric:shadows-play-services:3.4-rc2' testImplementation "org.robolectric:robolectric:3.6.1" testImplementation "com.google.android.gms:play-services-auth:$rootProject.ext.googlePlayServicesVersion" // the robolectric shadow bogusly needs this I am trying this: import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GoogleApiAvailability; import org.junit.Before; import org.junit.runner.RunWith; import org.robolectric

How to get custom data from receiver

限于喜欢 提交于 2019-12-24 21:22:01
问题 I'm attempting to integrate Chromecast into our app and I'm running into an issue with getting data from the receiver when joining an already running application. When first launching the application i set meta date with the RemoteMediaPlayer using public class CastMessageStream extends RemoteMediaPlayer { public void setMetadata(GoogleApiClient apiClient, CastingObject castingObject, String seriesId, String description, String episodeNumber, String title) { JSONObject payload =

Imported Project in Android Studio can't resolve ActivityRecognnitionClient

Deadly 提交于 2019-12-24 21:09:13
问题 I imported a project from Eclipse to Android Studio. It uses Activity Recognition and Location Services. Now, this Android Studio project can resolve : 1) GooglePlayServicesClient (com.google.android.gms.common.GooglePlayServicesClient) and even 2) DetectedActivity (com.google.android.gms.location.DetectedActivity) but can't resolve ActivityRecognitionClient (com.google.android.gms.location.ActivityRecognitionClient). What might be the issue? 回答1: I think you are not including Google play

com.google.android.gms.internal.measurement is missing in Google Play Services 15.0.0 and greater

回眸只為那壹抹淺笑 提交于 2019-12-24 18:34:58
问题 Play Services uses a new versioning scheme starting with version 15.0.0 . Updating Play Services analytics to version 15.0.0 or greater produces a compile-time error in our app because the package com.google.android.gms.internal.measurement has been removed. AppMeasurementInstallReferrerReceiver was previously in this package. We are using AppMeasurementInstallReferrerReceiver in a JobIntentService to share the install referrer intent with Google Analytics and Firebase Analytics. The

Google Play services activity recognition disconnects without any error

霸气de小男生 提交于 2019-12-24 16:37:33
问题 I am writing a background service (started by an activity) that records Screen on/off events and user's activity. For activity, I am using google api client. The app works correctly on Moto G phones i.e. records both activity and screen but activity recognition stops on HTC one phone. I have done few updates to code but still there is an issue that activity recognition stops after few minutes. As suggested by another member, I also exported both the android-support-v4.jar and android-support

replacing com.google.android.gms:play-services with google-play-services.jar

笑着哭i 提交于 2019-12-24 14:51:04
问题 I am building a google maps app on android using android studio When I released the first version of my app, no one was able to view the google maps as google play services must be installed on the devices by users ( I cant ask people to download that in each device) so I want to embed it into my app. I have been searching for 4 days and no luck so far I got that google-play-services.jar library can be added to the app and by that no need for the user to install play services I am not sure if

Android Google Plus SDK: progress indicator (ProgressBar) never stops after click on +1 button

血红的双手。 提交于 2019-12-24 12:20:01
问题 I implemented the +1 button in my Android app. Almost everything works fine: I can log in /log out when I am logged in, the +1 button tells what is the number of +1 and becomes red/white in compliance with the fact that I did or not a +1 on my webpage BUT....when I click on the +1 button, an activity indicator (progress indicator (ProgressBar)) appears on my +1 button (which becomes white) and it never stops rotating ! The window to cancel/share/make a +1 never appears... Note that I have

possible bug for Google play game service package name?

半城伤御伤魂 提交于 2019-12-24 11:35:12
问题 I publish a game using package name "com.Company.MyGame" sign with "MyKey.keystore", then i publish a Google Play Game Service link with "com.company.MyGame" with "MyKey.keystore". Obviously it doesn't link because of case sensitive. Now i try to create another Google Play Game Service to link with "com.Company.MyGame" with "MyKey.keystore" but it prompt me an error saying "Package name and certificate fingerprint combination already exists" But this doesn't make sense since "com.Company