dsolonenko / financisto

Financisto - open-source personal finance tracker for Android
http://financisto.com
GNU General Public License v2.0
151 stars 75 forks source link

Google Drive Backup stopped working #142

Open mkhokhlov opened 4 years ago

mkhokhlov commented 4 years ago

Google Drive Backup stopped working all of the sudden a few days back. I'm getting an OK-dialog box saying "Financisto requires one or more Google Play services that are not currently available.

It's weird because everything else seems to work and I surely have Google Play Services version 20.04.14 installed. It might be a red herring, but I think this coincided with an upgrade to Android System WebView to version 80.0.3987.132.

I'm using Financisto 1.8.2 on Google Pixel 3 with Android 10 and Android security patch level of March 5, 2020.

Let me know if any additional information is needed.

nmusatov commented 4 years ago

Got absolutely the same issue.

mkhokhlov commented 4 years ago

The error I'm seeing in logcat is this: One of the API components you attempted to connect to is not available.

It seems like it comes from GoogleApiClient.handleConnectionResult, when it's being called from GoogleApiClient.doBackup: https://github.com/dsolonenko/financisto/blob/master/app/src/main/java/ru/orangesoftware/financisto/export/drive/GoogleDriveClient.java#L117.

This is just a guess, but it might be ConnectionResult.API_UNAVAILABLE, the description of which is saying this:

The API will not work on this device or for your app or for this particular account, and updating Google Play services will not likely solve the problem.

Maybe Financisto needs to be re-built and linked against a newer version of Google Play Services? There is PR #136 bumping target and compile SDK version. I'm wondering if integrating it would be enough to fix the underlying issue.

https://developers.google.com/android/reference/com/google/android/gms/common/ConnectionResult#public-static-final-int-api_unavailable

mkhokhlov commented 4 years ago

Interestingly enough, it just started to work again. Again, it's just a speculation, but it seems coincided with me updating Carrier Services to a newer version.

sash-kan commented 4 years ago

google drive backup stopped working again: "financisto requires one or more google play services that are not currently available."

LeonidasKapassakalis commented 4 years ago

New Phone Note 9 Pro and "one or more google play services that are not currently available" message. Any solution available?

qwarkys commented 4 years ago

Google drive backup stopped working immediately after I upgraded to Android 11. The usual "financisto requires one or more google play services that are not currently available."

oleg-derevenetz commented 3 years ago

Looks like GoogleDriveClient.java uses Google Drive Android API that has been deprecated a long time ago, and should have been turned off completely since December 6, 2019. It should be rewritten to use Google Drive REST API instead.

hillwithsmallfields commented 3 years ago

I can't import CSV files from Google Drive either, I guess that might be the same thing. Somewhat frustrating, after hours of preparing my bank statements for import!