google-play-services

Version conflict updating to play-services 9.4.0 Android studio 2.2

♀尐吖头ヾ 提交于 2020-01-08 12:25:31
问题 I get an error saying Error:Execution failed for task ':app:processDebugGoogleServices'. > 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 9.0.0. I tried looking at https://bintray.com/android/android-tools/com.google.gms.google-services/ and com.google.gms:google

Google Maps Api v2 Android Error

落爺英雄遲暮 提交于 2020-01-07 09:45:43
问题 only Android 5.0 work. Error by Android 5.0 lower I have installed all SDK package. Manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.allegretti.triestebus" > <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="19" /> <permission android:name="com.allegretti.triestebus.permission.MAPS_RECEIVE" android:protectionLevel="signature" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE

How to correctly register DATA_CHANGED Data API event after crash/forcibly stop?

試著忘記壹切 提交于 2020-01-07 04:21:24
问题 I'm developing an Android app to collect data from an Android Wear. A WearableListenerService is used in the handheld device to receive data from the watch via Data API. But I noticed that if the app in handheld device is forcibly stopped, either from Settings -> Apps or by adb during development, while the app in wearable is still running, it won't be able to receive data again even it's manually restarted. This won't happen if the wearable is not running the app. To restart capturing the

Google Awareness API cannot register fence on emulator

荒凉一梦 提交于 2020-01-07 01:11:11
问题 I try to update fence using following code: AwarenessFence locationFence = LocationFence.entering(latitude, longitude, radius); Awareness.FenceApi.updateFences( mGoogleApiClient, new FenceUpdateRequest.Builder() .addFence(LOCATION_FENCE_KEY, locationFence, mPendingIntent) .build()) .setResultCallback(new ResultCallback<Status>() { @Override public void onResult(@NonNull Status status) { if (status.isSuccess()) { Log.i(TAG, "Fence was successfully registered."); } else { Log.e(TAG, "Fence

google play game service errors

杀马特。学长 韩版系。学妹 提交于 2020-01-06 20:35:46
问题 I want to try google play game service in my own app, I download the sample from web and have a try with it. But when I run the sample, here are some errors show in my log cat. Unable to retrieve 1p application 336969378003 Unable to load player 102010880864480302016 I hava set up the app correctly on the console and I don't know what's wrong with it. Waiting for your answer. Thx for everyone. 回答1: In Step 3. Generate an OAuth 2.0 client ID it specifically gives a warning as follows: Warning:

google play game service errors

≯℡__Kan透↙ 提交于 2020-01-06 20:35:22
问题 I want to try google play game service in my own app, I download the sample from web and have a try with it. But when I run the sample, here are some errors show in my log cat. Unable to retrieve 1p application 336969378003 Unable to load player 102010880864480302016 I hava set up the app correctly on the console and I don't know what's wrong with it. Waiting for your answer. Thx for everyone. 回答1: In Step 3. Generate an OAuth 2.0 client ID it specifically gives a warning as follows: Warning:

App size getting increased

佐手、 提交于 2020-01-06 20:18:55
问题 Recently i have used Fused Location API for location purpose. Before applying google play service library com.google.android.gms:play-services:8.3.0 the app size was 4.3MB (4,499,239 bytes) but after using this api it increased to 5.8 MB (6,085,932 bytes). Only one class has been added to the project. i.e LocationService.java where i am calling it from service class and here is the code. LocationService.java public class LocationServiceRACE implements GoogleApiClient.ConnectionCallbacks,

GC overhead limit exceeded with google play services

人盡茶涼 提交于 2020-01-06 19:27:17
问题 I am trying to run my android project on eclipse and platform ubuntu 64 bit. Everything goes well but When I Add Google play Services to the project appear a big problem. 1.Running android app, hight CPU load. Eclipse Show wrong message "GC overhead limit exceeded". Finally Close Eclipse. When remove google play from my prject, it can running well. 回答1: I would suggest using android studio instead of eclipse https://developer.android.com/sdk/index.html. But also, you could try launching

Google Api Client interface methods explanation?

夙愿已清 提交于 2020-01-06 18:33:50
问题 @Override public void getLeaderboardGPGS() { if (gameHelper.isSignedIn()) { startActivityForResult(Games.Leaderboards.getLeaderboardIntent(gameHelper.getApiClient(), getString(R.string.event_score)), 100); } else if (!gameHelper.isConnecting()) { loginGPGS(); } } @Override public void getAchievementsGPGS() { if (gameHelper.isSignedIn()) { startActivityForResult(Games.Achievements.getAchievementsIntent(gameHelper.getApiClient()), 101); } else if (!gameHelper.isConnecting()) { loginGPGS(); } }

java.lang.NoClassDefFoundError: com.google.android.gms.gcm.GoogleCloudMessaging using java.lang.NoClassDefFoundError:

拥有回忆 提交于 2020-01-06 16:11:43
问题 This is really annoying. I've wasted a whole day but haven't received any proper result. I'm trying to add Google Cloud Messages into my app. I'm using Eclipse last version. ADT last version. I've added google-play-services_lib as Library, added the jar file in Build path but my app drops at the code line below: GoogleCloudMessaging regId = GoogleCloudMessaging.getInstance(_.appContext); java.lang.NoClassDefFoundError! How to solve this problem? 回答1: The problem is the bug of SDK and Eclipse.