googlearchive / solutions-mobile-backend-starter-android-client

Apache License 2.0
81 stars 73 forks source link

Does not work #10

Open comprodigy opened 10 years ago

comprodigy commented 10 years ago

I couldnt tell you what the problem is with this thing, whether its the code itself or the Google backend. I do know that the version number in the meta file has to be changed in order to get it to launch. I also had to import the google play service library into my workspace to reference it to build. Ive changed out all the information in the const.java file that I can (but there is no reference in any of the documentation of where to get the Web Client ID). But, with what I was able to get running the app give me a GoogleAuthException when it finally runs.

swaroopjcse commented 10 years ago

I am getting the same error. I posted a question on StackExchange, but no luck. Here's the link to that [http://stackoverflow.com/questions/21494577/googleauthioexception-when-enabling-authentication-in-android-mobile-backend], and here's my error log. Hope someone here can resolve it. 02-01 00:11:08.497: I/CloudBackend(1982): error: 02-01 00:11:08.497: I/CloudBackend(1982): com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(GoogleAccountCredential.java:308) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:854) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.cloud.backend.core.CloudBackend.list(CloudBackend.java:314) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.cloud.backend.core.CloudBackendAsync.access$8(CloudBackendAsync.java:1) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.cloud.backend.core.CloudBackendAsync$9.callBackend(CloudBackendAsync.java:270) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.cloud.backend.core.CloudBackendAsync$9.callBackend(CloudBackendAsync.java:1) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.cloud.backend.core.CloudBackendAsync$BackendCaller.run(CloudBackendAsync.java:402) 02-01 00:11:08.497: I/CloudBackend(1982): Caused by: com.google.android.gms.auth.GoogleAuthException: Unknown 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.getToken(GoogleAccountCredential.java:277) 02-01 00:11:08.497: I/CloudBackend(1982): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(GoogleAccountCredential.java:301) 02-01 00:11:08.497: I/CloudBackend(1982): ... 9 more

alwasih commented 10 years ago

My app just crashes after I choose my Google account on my smartphone for authentication. Yeah I'm not gonna lie...this whole method of configuring everything just seems so difficult and complicated.