google-play-services

Google Play Services update

。_饼干妹妹 提交于 2019-12-17 05:56:52
问题 Yesterday API 19 came out so I upgraded SDK and other (including Google Play Services) now this method: private boolean isGooglePlayInstalled(){ int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); if(status == ConnectionResult.SUCCESS){ return true; }else{ ((Dialog)GooglePlayServicesUtil.getErrorDialog(status, this,10)).show(); } return false; } Throws at line int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); Caused by: java.lang

Google Play Services update

拜拜、爱过 提交于 2019-12-17 05:55:48
问题 Yesterday API 19 came out so I upgraded SDK and other (including Google Play Services) now this method: private boolean isGooglePlayInstalled(){ int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); if(status == ConnectionResult.SUCCESS){ return true; }else{ ((Dialog)GooglePlayServicesUtil.getErrorDialog(status, this,10)).show(); } return false; } Throws at line int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); Caused by: java.lang

Version conflict updating to 8.4.0

我只是一个虾纸丫 提交于 2019-12-17 03:52:38
问题 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 here) or updating the version of com.google.android.gms to 8.3.0. I've done all the things I've found. dependencies { // This does not break the build when Android Studio is missing the JRebel for Android plugin. classpath 'com.zeroturnaround.jrebel.android:jr-android-gradle:1.0.+'

How to determine which dependency causes Google Play OpenSSL warning?

对着背影说爱祢 提交于 2019-12-17 03:44:46
问题 I'm currently working on a big legacy project and trying to fix the OpenSSL vulnerability issue as explained at How to address OpenSSL vulnerabilities in your apps. The problem is, there are lot of dependencies, some are open source (I updated all that didn't break the compatibility) added as Gradle import, some are custom/closed source provided by partners and contractors of the company I work for and attached to the project as JARs. Is there any way to pinpoint specific library that has

FusedLocationApi.getLastLocation always null

笑着哭i 提交于 2019-12-17 03:35:10
问题 I'd like to simply retrieve device location in my Android project and in order to do so I use the play-services approach: protected synchronized void buildGoogleApiClient() { mGoogleApiClient = new GoogleApiClient.Builder( MainSearchActivity.this ) .addConnectionCallbacks(new GoogleApiClient.ConnectionCallbacks() { @Override public void onConnected( Bundle bundle ){ Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); if( location == null ){

Google Firebase sign out and forget user in Android app

耗尽温柔 提交于 2019-12-17 03:16:35
问题 When I call mFirebaseAuth.signOut() or mFirebaseUser.delete() my FirebaseAuth.AuthStateListener() works correctly and returns null as FirebaseUser instance in onAuthStateChanged , I refresh UI and show "Sign in with Google" button. But when I want to log in again, I don't see the dialog with users (I have 2 users on my device, attached the image). The app shows this dialog only in first sign in, after that it uses the same user. If I clear app's data on the settings screen I will be able to

cannot get folderId that i just created on google drive

*爱你&永不变心* 提交于 2019-12-17 02:25:25
问题 public class Helpers extends Activity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { SharedPreferences preferences; private static final String TAG = "BaseDriveActivity"; public static String EXISTING_FOLDER_ID; protected static final int REQUEST_CODE_RESOLUTION = 1; protected static final int NEXT_AVAILABLE_REQUEST_CODE = 2; public static final String folderId = "FOLDER_ID"; public static final String fileName = "folderId"; private

Gradle build tool cannot find play-services-tasks.aar? Why?

本小妞迷上赌 提交于 2019-12-17 02:24:21
问题 Today suddenly, I got an error when I tried to run my app in Android studio. It is: Error: Could not find play-services-tasks.aar (com.google.android.gms:play-services-tasks:15.0.1). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-tasks/15.0.1/play-services-tasks-15.0.1.aar I didn't change anything in the gradle file but it appeared suddenly. My previous build executed successfully some minutes ago. Why it can't find play-services-tasks

How to show enable location dialog like Google maps?

陌路散爱 提交于 2019-12-17 02:05:19
问题 I use the latest version of Google Play Services (7.0) and followed the steps given in their guide and I enabled the location dialog like below, which has a "never" button. My app mandatorily needs location so I don't want to show never to user, because once the user clicks "never", I'm unable to get location or request for location again at all. Where as Google Maps has only yes and no button without never button, any idea how to achieve the same? My app's image Google Map's image 回答1:

How to show enable location dialog like Google maps?

时间秒杀一切 提交于 2019-12-17 02:03:03
问题 I use the latest version of Google Play Services (7.0) and followed the steps given in their guide and I enabled the location dialog like below, which has a "never" button. My app mandatorily needs location so I don't want to show never to user, because once the user clicks "never", I'm unable to get location or request for location again at all. Where as Google Maps has only yes and no button without never button, any idea how to achieve the same? My app's image Google Map's image 回答1: