google-play-services

failed resolving googleplayservices

折月煮酒 提交于 2020-01-04 09:12:20
问题 I am trying to create an android application that is location aware using google play services as it seems that is the new recommended fashion for doing this. I have used the tutorial I found on the android developers site to setup my project. It seems correct and builds fine, however, when the activity just BEFORE the activity that has the google play services dependencies starts I see the following in log cat. 06-18 01:31:04.126: I/dalvikvm(30480): Failed resolving Lcom/example/activities

failed resolving googleplayservices

旧街凉风 提交于 2020-01-04 09:12:04
问题 I am trying to create an android application that is location aware using google play services as it seems that is the new recommended fashion for doing this. I have used the tutorial I found on the android developers site to setup my project. It seems correct and builds fine, however, when the activity just BEFORE the activity that has the google play services dependencies starts I see the following in log cat. 06-18 01:31:04.126: I/dalvikvm(30480): Failed resolving Lcom/example/activities

Google play services out of date on a virtual machine

 ̄綄美尐妖づ 提交于 2020-01-04 04:32:13
问题 I'm trying to make an application using google maps, but in the emulator it does not work in console I see the following error: W/GooglePlayServicesUtil(1041): Google Play services out of date. Requires 3159100 but found 3136130 On screen I see that I have to update google services .. My virtual machine is 4.2.2 What do I do? I've searched the forums here .. but no solution that I've tried has worked .. 回答1: Install a compatible version of the Google APIs platform. Open the sdk manager and

GoogleService failed to initialize, status: 10, Missing google app id value from from string resources with name google_app_id

情到浓时终转凉″ 提交于 2020-01-04 04:11:11
问题 Im getting this error out of nowhere it used to work just fine. Here is what i have: in app.gradle dependencies: implementation "com.google.firebase:firebase-core:16.0.1" implementation "com.google.firebase:firebase-messaging:17.3.1" in app.gradle end of file: apply plugin: 'com.google.gms.google-services' in project gradle file: dependencies { classpath 'com.android.tools.build:gradle:3.3.0-alpha10' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'io.fabric

How can I make multiple app flavors use the same google-services.json file?

Deadly 提交于 2020-01-04 03:01:14
问题 I would like to have one google-services.json file, with one application ID, connected to one Firebase "app" in one Firebase "project," used by a variety of flavors of my Android app. My flavors are branded differently, but they work very much the same, and I want the analytics data from all of them to end up in the same place in Firebase. However, they all (of course) have Android application IDs/package names that are suffixed differently, and none of those flavor package names match the

isGooglePlayServicesAvailable always returns 2

坚强是说给别人听的谎言 提交于 2020-01-04 02:46:11
问题 I'm trying to implement Google Play Services Library to my Android app. But there is an issue about isGooglePlayServicesAvailable function. Although my play services is up to date, it returns 2 which means SERVICE_VERSION_UPDATE_REQUIRED according to documentation. My code is below: @Override protected void onResume() { super.onResume(); int statusCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(LoginSigninActivity.this); if( statusCode != ConnectionResult.SUCCESS) { Log.e(

Android: No resource found powered_by_google_light icon in build tools 23.0.3?

爷,独闯天下 提交于 2020-01-03 17:24:08
问题 I have always used the powered_by_google icons as I'm using the Google Places API . They look like this: On this site, it says the icons are included within the Google Play services library: https://developers.google.com/places/android-api/attributions The 'Powered by Google' image is included in the Google Play services library, in the correct sizes for Android apps. You may not resize or modify these images in any way: For use on a light background: @drawable/powered_by_google_light For use

Android “ Could not find method android.app.Notification$Builder.setLocalOnly ”

倾然丶 夕夏残阳落幕 提交于 2020-01-03 15:56:11
问题 I'm an Android Beginner. Nowadays, I'm testing Google Analytics and I met the following log : Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza what is mean and what I have to do? 回答1: setLocalOnly is available on API Level 20 and above . May I know that do you include Android Support Library v4 or AppCompat v7 to your app yet? It might helps. I believe that Google Play Services will use

Android “ Could not find method android.app.Notification$Builder.setLocalOnly ”

Deadly 提交于 2020-01-03 15:56:10
问题 I'm an Android Beginner. Nowadays, I'm testing Google Analytics and I met the following log : Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza what is mean and what I have to do? 回答1: setLocalOnly is available on API Level 20 and above . May I know that do you include Android Support Library v4 or AppCompat v7 to your app yet? It might helps. I believe that Google Play Services will use

Google Sign In not working after published in playstore

浪尽此生 提交于 2020-01-03 14:17:33
问题 Before publishing in the play store my google sign was working fine. I saw some questions here in stackoverflow, but none of them answered my question. I don't know why the login is not working anymore. (I'm not using firebase). I did all the steps to make the google sign work, and it was working before I published. Anyone knows what is happening? What can I do? 回答1: This is due to different SHA1 keys for debug and release version. The thing is that for google sign in you must add SHA1 key in