google-play-services

Execution failed for task app:transformClassesAndResourcesWithProguardForDebug

泄露秘密 提交于 2019-12-21 07:16:07
问题 when i try to run my app i get these errors: Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'. java.io.IOException: Please correct the above warnings first. This is my Gradle file apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.2" defaultConfig { applicationId "xxxxxxxxxxxxx" minSdkVersion 14 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled true shrinkResources true

passing the GoogleApiClient obj from one activity to another

强颜欢笑 提交于 2019-12-21 07:08:17
问题 I want to be able to update my score for my leaderboard in a different activity other than the one that creates the GoogleApiClient obj ( the main activity ). What is the best way to do this? Is making the obj parcelable the correct way? if so how can you do it if the class is part of a library. Can you make the obj static? is it safe? Any advice on how to achieve this would be great. 回答1: You could use Application class, an android-oriented singleton pattern class and it could be your base

passing the GoogleApiClient obj from one activity to another

与世无争的帅哥 提交于 2019-12-21 07:08:15
问题 I want to be able to update my score for my leaderboard in a different activity other than the one that creates the GoogleApiClient obj ( the main activity ). What is the best way to do this? Is making the obj parcelable the correct way? if so how can you do it if the class is part of a library. Can you make the obj static? is it safe? Any advice on how to achieve this would be great. 回答1: You could use Application class, an android-oriented singleton pattern class and it could be your base

Google Play services out of date. Requires 7571000 but found 6774470

痴心易碎 提交于 2019-12-21 07:05:03
问题 Im trying to add google play API to my android game and i followed the instructions in their site. I got this error in the emulator run, trying to solve it. (on my phone the app just crash) In the manifest: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> In the Version.xml <integer name="google_play_services_version">7571000</integer> and i got all the necessary packages installed. What the problem may be? Comment: it's

How to find google play service version in Android Studio?

六月ゝ 毕业季﹏ 提交于 2019-12-21 06:57:55
问题 I am trying to use google play services for location purposes. Therefore I wanted to add google play services to my app. In build.gradle dependincies I added following line. compile 'com.google.android.gms:play-services:9.0.1' However it gives following error Error:(25, 13) Failed to resolve: com.google.android.gms:play-services:9.0.1 I couldnt find which version of Google play services installed. In SDK Tools tab it says version 30. I've tried following line too but it also gave same error

How can I detect if user disable GPS (Android - Play Services)

混江龙づ霸主 提交于 2019-12-21 06:15:07
问题 I use gms.location.LocationListener (Google Play Services) to get the user's location. It works fine but I want to detect whenever the user disables or enables his/her GPS. As in this picture. When I turn ON/OFF location no methods are called. When I switch apps and return to my app this methods are called: onStart onResume onConnected But I need the event to be called whenever the user turns ON/OFF location those events I listed don't get called. Note: With Android API I am able to get those

Can't run RealTimeRoom Google-Play-Games iOS ButtonClicker2000 sample on real device

徘徊边缘 提交于 2019-12-21 05:44:09
问题 I'm trying to run Google-Play-Games iOS sample ButtonClicker2000 project on Real Device. (quickstart: https://developers.google.com/games/services/ios/quickstart downloads: https://developers.google.com/games/services/downloads/) The process of signing in to GooglePlayService does not show any error. I'm sure that my google console project setted up correctly. I don't have any problem when launching on emulator BUT on a real device (it doesn't matter on iphone or ipad) when i click on quick

App initialization very slow: FirebaseApp initialization unsuccessful

可紊 提交于 2019-12-21 03:56:31
问题 I know about this question but I don't think it helps me and the problem looks slightly different. I'm doing this app where I need to implement AppsFlyer for tracking and I'm required to use only 2 components from Google Play Services: com.google.android.gms:play-services-ads com.google.android.gms:play-services-gcm And I'm using the latest version of the Google Play Services, 9.0.2 that is. The problem is that on the first app launch after installing the app , the app takes quite a bit of

Restrict Places Autocomplete API to cities of specific country android

杀马特。学长 韩版系。学妹 提交于 2019-12-21 03:37:11
问题 I am using PlaceAutocompleteApi from Play Services, what I want to do is restrict auto-complete to specific country & city only. Eg. All cities from lets say India only. I am using AutocompleteFilter to do so but I don't know where to specify country that I want to restrict. Here is my code List<Integer> autocompleteFilter = new ArrayList<>(); // autocompleteFilter.add(Place.TYPE_COUNTRY); // autocompleteFilter.add(Place.TYPE_LOCALITY); mAdapter = new PlaceAutocompleteAdapter(mContext,R

Android “Not_Market_Managed” error

两盒软妹~` 提交于 2019-12-21 03:15:10
问题 Working on trying out the market licensing service, and I'm running into a few problems with the sample application. When I first ran the sample, I got an error saying that the application was not licensed. I linked my account to the simulator in order to get it to get the test response, and now I get an error saying "Application error: NOT_MARKET_MANAGED" Does this mean that I have to upload the app to the market in order to test to see if it works? 回答1: Yes your app has to be on the market