google-play-services

Android dependency com.google.firebase:firebase-core different version for the compile (12.0.1) and runtime (11.4.2)

妖精的绣舞 提交于 2019-12-12 19:41:14
问题 this is my Project Gradle dependencies classpath 'com.android.tools.build:gradle:3.1.0' classpath 'com.google.gms:google-services:3.0.0' classpath "io.realm:realm-gradle-plugin:4.2.0" classpath 'com.google.firebase:firebase-plugins:1.1.1' this is my App Gradle dependencies implementation 'com.google.android.gms:play-services-ads:11.4.2' implementation 'com.google.firebase:firebase-core:11.4.2' implementation 'com.google.android.gms:play-services-base:11.4.2' implementation 'com.google

How to get google-services.json from Developer console?

我的未来我决定 提交于 2019-12-12 18:13:36
问题 How to get google-services.json from Developer console after the project has been created and services were enabled? I want to generate it from Developer console and not from Developer docs. 回答1: Follow the steps here: https://developers.google.com/mobile/add After all parameters are added you will get a download link for your google-services.json 回答2: Follow this link to get Configuration file Analytics Api Configuration File 来源: https://stackoverflow.com/questions/36591663/how-to-get-google

Found com.google.android.gms:play-services-places:9.2.1, but version 9.0.2 is needed for the google-services plugin

走远了吗. 提交于 2019-12-12 18:12:50
问题 The title is the error I'm getting trying to compile my Android app. This looks like a recurring problem, but none of the answers for the questions of the same kind helped me. I've got this in my project's build.gradle dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.google.gms:google-services:3.0.0' } And this in my app's build.gradle dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support

Non-static method isGooglePlayServicesAvailable and getErrorDialog cannot be referenced from a static context

感情迁移 提交于 2019-12-12 15:15:19
问题 I am writing this code and it shows the error non-static method GoogleApiAvailability.isGooglePlayServicesAvailable(Context context) and GoogleApiAvailability.getErrorDialog (Activity activity, int errorCode, int requestCode) cannot be referenced from a static context. package com.xamarin.gcmexample; import android.app.Dialog; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common

google play game realtime multiplayer how to get quickmatch player's name?

坚强是说给别人听的谎言 提交于 2019-12-12 14:11:06
问题 i am trying to use google API to make my realtime multiplayer game. I noticed that everytime the players play with each other using the "random match" option, their IDs are different from their actual google IDs... Is there a way to retrieve their actual google IDs on random match and to not use these strange IDs? 回答1: As far as I have found you can't for auto-match. From - https://developers.google.com/games/services/android/realtimeMultiplayer#quick_game_option However, to preserve

Robolectric 3 GooglePlayServicesNotAvailableException

被刻印的时光 ゝ 提交于 2019-12-12 13:21:07
问题 I've just started to use Robolectric and wanted to know how to resolve Google Play Services . I'm using Robolectric 3 RC2 , and my gradle is as follow : build.bradle compile 'com.squareup.okhttp:okhttp:2.3.0' compile 'com.google.android.gms:play-services:7.0.0' testCompile ("org.robolectric:robolectric:3.0-rc2"){ exclude module: 'commons-logging' exclude module: 'httpclient' } testCompile ("org.robolectric:shadows-play-services:3.0-rc2"){ exclude module: 'commons-logging' exclude module:

How to invoke setCountry() to AutocompleteFilter Google place API?

社会主义新天地 提交于 2019-12-12 12:35:25
问题 I am implementing PlaceAutocompleteFragment for auto complete of location. I want to restrict my search to specific country ( like earlier we use component=UK in url). How can I achieve this in my below code. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment);

Google Play Game Services : Debug AND Release certificate

十年热恋 提交于 2019-12-12 12:20:56
问题 After much screaming and tearing of hair I have finally gotten In-App billing and Play Services sign in to work in my Android application - kind of. Google should really be ashamed of themselves, the process has been gruelling to put it mildly. One example of extremely important information that is mentioned kind of like an afterthought on the tutorial pages: "You must create the new client ID in the Google Play Developer Console, not in the Google Developers Console." I have now reached the

Segmentation fault with aapt

末鹿安然 提交于 2019-12-12 11:45:09
问题 Trying to build and Android project using Maven, we are not able to compile it with google play services apklib with it. I've tried to remove all the languages from the apklib, just keeping the default one, and it seems to be able to execute aapt with no problems. Does anybody run into this problem? I've tried to do what Jake Wharton says in this website: https://github.com/JakeWharton/gms-mvn-install , but the Segmentation fault still happening. Ideas? Thank you for your time. aapt: warning:

Google tag manager won't push event's to datalayer on Android

感情迁移 提交于 2019-12-12 10:58:55
问题 I'm trying to implement Tag Manager in my Android Application following this guide, but for some reason I can't push event's to the datalayer. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TagManager tagManager = TagManager.getInstance(getApplicationContext()); TagManager.getInstance(getApplicationContext()).setVerboseLoggingEnabled(true); PendingResult<ContainerHolder> pending = tagManager