google-play-services

Compilation Issue in Android Studio with Google Play Services

半腔热情 提交于 2019-12-22 06:47:50
问题 I am running AndroidStudio 0.8.4 and have tried this on AndroidStudio 0.8.2. I am running Java JDK 1.8.0_11 and have tried this with JDK 1.8.0_05. Whenever I try to build my android studio project -- Build -> Rebuild Project -- or try to run the application, I get the following error: An exception has occurred in the compiler (1.8.0_11). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program

specify valid wake lock level

老子叫甜甜 提交于 2019-12-22 05:22:07
问题 working an an app with GCM support, no problems there. But when I push the notification, the app crashes an LogCat says the following: 03-21 14:32:13.276: E/AndroidRuntime(4457): java.lang.RuntimeException: Unable to start activity ComponentInfo{de.yanniks.cm_updatechecker/de.yanniks.cm_updatechecker.UpdateChecker}: java.lang.IllegalArgumentException: Must specify a valid wake lock level. How do I define the valid wake lock level? Please help! 回答1: You must specify one of PARTIAL_WAKE_LOCK

Google Smart Lock dialog for saving credentials does not appear when testing

。_饼干妹妹 提交于 2019-12-22 04:54:15
问题 I am trying to save a user's facebook credentials to Google Smart Lock, but I am having difficulty testing. I was able to display the prompt to save once, but after I went into my saved passwords (passwords.google.com) and deleted the saved credentials, the prompt is not appearing anymore! I went into google settings and made sure to delete the app from the "never save" section, but it is still not appearing. When I call Auth.CredentialsApi.save(), it is returning with a resolution of "null"

What is the fall back plan for devices without Google Play Services

杀马特。学长 韩版系。学妹 提交于 2019-12-22 04:00:20
问题 Currently, I'm migrating previous Google services which makes use of jar library to Google Play Services. Google AdMob Google Analytics Google Drive However, in migration guide, Google doesn't mention what we should do, for devices without Google Play Services, or without up-to-dated Google Play Services. So, should we just ignore users without Google Play Services, or there is a fall back plan? Having to maintain separate set of jar files and legacy code for fall back plan is quite

Where can i add google-services.json in xamarin app

江枫思渺然 提交于 2019-12-22 03:42:42
问题 Hi we are developing Xamarin application where we want monitor how many peoples install application from our referral id. Im find this document https://developers.google.com/analytics/devguides/collection/android/v4/ where it says "Copy the google-services.json file you just downloaded into the app/ or mobile/ directory of your Android Studio project.". I have visual studio (2013) project where these folders are missing of course. Question is, where i add the google-services.json file in

cannot resolve symbol 'LocationServices'

柔情痞子 提交于 2019-12-22 01:34:05
问题 I am trying to build an android app using android studio that uses the userlocation. I am trying to import the google play services LocationServices api, but it says it can't resolve symbol 'LocationServices'. I tried searching for an answer but I can't figure out what the problem is. here is a picture of my error and code: Thanks in advance 回答1: You need to import: import com.google.android.gms.location.LocationServices; And in build.gradle : implementation 'com.google.android.gms:play

How to remove unused Google+ icons imported from Google Play Services library

孤人 提交于 2019-12-21 20:37:02
问题 I've migrated the AdMobs banner ads to Google Play Services in my Android Studio project. The resulting APK mushroomed from 0.7 MB to over 1.6 MB. Fortunately ProGuard knocked it down to just over 1 MB. I poked around the APK and noticed that 280 kB of "g+" images have been added to res/ drawable-hdpi drawable-mdpi drawable-xhdpi drawable-xxhdpi I have no plans to ever use Google+ in this app. It's a utility app and there's no need to deal with social media. 280kB may sound like peanuts

ANR caused by com.google.android.gms.DynamiteModules

梦想与她 提交于 2019-12-21 19:53:01
问题 I am using Firebase inside my app with Facebook authentication. After the 3th restart of my app, it freezes and then shows an ANR (please see my last question). After some doing some research i found out that something is blocking the main thread. I have no clue why this is happening. The error below show up a couple of times when my app is running (my app does not freeze when this error appears). Does anyone have an idea? I have included some info below, maybe it helps Note: Google play

Android - Google+ share status fails

不羁的心 提交于 2019-12-21 17:48:17
问题 I went over the Google's description on how to share status from my Android app to Google+: https://developers.google.com/+/mobile/android/share/ (I'm doing an example app that does exactly what they do in the example) I'm getting this exception: Process: com.google.android.gms.ui, PID: 19643 java.lang.IllegalArgumentException at com.google.k.a.aj.a(SourceFile:72) at com.google.android.gms.plus.audience.a.e.<init>(SourceFile:63) at com.google.android.gms.plus.audience.a.e.<init>(SourceFile:53

Use authorized Google Cloud Endpoints with Google Sign in

最后都变了- 提交于 2019-12-21 17:02:08
问题 I have an app that uses Google Cloud Endpoints. Some methods need authorization so I followed this tutorial. This requires the GET_ACCOUNTS permissions. I am updating the app to work with runtime permissions. I do not like to request permission to read contacts, but GET_ACCOUNTS is in the same group. Because of this I am looking to use authorization without GET_ACCOUNTS permission. I think that Google Sign In could work but I am unable to find a way to use the result from Google Sign In. This