Im trying to execute the Android Identity Toolkit example from Google: https://github.com/googlesamples/identity-toolkit-android .
But, when I tried to execute the tutorial it gives me the next stack trace:
06-17 12:04:00.450 12306-12339/com.google.identitytoolkit.demo E/GoogleIdpClient﹕ Unrecoverable auth exception: Unknown
com.google.android.gms.auth.GoogleAuthException: Unknown
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.identitytoolkit.idp.google.GoogleIdpClient$1.call(GoogleIdpClient.java:126)
at com.google.identitytoolkit.idp.google.GoogleIdpClient$1.call(GoogleIdpClient.java:120)
at com.google.identitytoolkit.executor.ProgressRequestExecutor$2.doInBackground(ProgressRequestExecutor.java:84)
at com.google.identitytoolkit.executor.ProgressRequestExecutor$2.doInBackground(ProgressRequestExecutor.java:71)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
06-17 12:04:00.475 12306-12306/com.google.identitytoolkit.demo E/ViewRootImpl﹕ sendUserActionEvent() mView == null
I tried to find some iformation about that exception, but I cant find anything clear, or anything I can use as a solution.
I did all the steps which Google say to do: https://developers.google.com/identity/toolkit/android/quickstart but still not working, probally I did something wrong. Can you help me?
I think, a lot can trigger the exception with so much configuring going on. I got the same exception. For me, the issue is in the AndroidManifest(I got everything right in the developer console configuration).
My first mistake:
android:scheme is given "Client ID for Android" instead of "Client ID for web application"
My next mistake: (I think this one is really causing the unknown exception)
identitytoolkit.server_client_id is given "Key for web applications" instead of, again, "Client ID for web application"(this time without modifying reverse like above)
Related
So, I'm having the JSONException (API query), but only when I run the app on an emulator (on different virtual devices, different APIs). The problem exists only with one query. When I call for the same data in another place of the app, it works. On physical device, it works perfectly fine. The question is what can be the cause of this error on an emulator and if I should bother?
Android Studio: 2.2.3
Error:
E/EGL_emulation: tid 2936: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH)
E/QueryUtils: Problem parsing the city JSON results
org.json.JSONException: No value for data
at org.json.JSONObject.get(JSONObject.java:389)
at org.json.JSONObject.getJSONObject(JSONObject.java:609)
at com.mobileallin.polskiesmogi.QueryUtils.extractFeatureFromJson(QueryUtils.java:171)
at com.mobileallin.polskiesmogi.QueryUtils.fetchcityData(QueryUtils.java:58)
at com.mobileallin.polskiesmogi.CityLoader.loadInBackground(CityLoader.java:54)
at com.mobileallin.polskiesmogi.CityLoader.loadInBackground(CityLoader.java:16)
at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312)
at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69)
at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:66)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Ok, so the cause of the problem was very stupid - I was submitting the query on the emulator by hitting enter on the keyboard (search functionality). It seems that hitting enter doesn't trigger the onQueryTextSubmit method the right way on an emulator. You need to click the submit button on the emulator.
I am getting this error log when i started downloading something and moved on to next activity and then coming back to previous activity results in App Crash. I searched for this here as well but no solution is found. How this error occurs and What should I do to resolve this.
[GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: <ELLIDED:1513926394>, App: com.google.android.gms, Service: oauth2:https://www.googleapis.com/auth/contextcontroller
dgn: Long live credential not available.
at dgo.a(:com.google.android.gms:3101)
at dfc.a(:com.google.android.gms:399)
at dfb.a(:com.google.android.gms:31371)
at dfb.a(:com.google.android.gms:313)
at egq.a(:com.google.android.gms:1201)
at ego.a(:com.google.android.gms:3554)
at ego.a(:com.google.android.gms:3196)
at dbp.a(:com.google.android.gms:349)
at dbp.a(:com.google.android.gms:213)
at dby.a(:com.google.android.gms:1501)
at dbx.a(:com.google.android.gms:914)
at dbx.e(:com.google.android.gms:526)
at dbx.d(:com.google.android.gms:445)
at dbv.b(:com.google.android.gms:562)
at jht.a(:com.google.android.gms:1080)
at jgj.a(:com.google.android.gms:53)
at bnz.a(:com.google.android.gms:5093)
at bjv.run(:com.google.android.gms:65)
at bjt.a(:com.google.android.gms:249)
at bjt.handleMessage(:com.google.android.gms:242)
at jly.run(:com.google.android.gms:139)
at jmg.run(:com.google.android.gms:450)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at jqr.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
ctxmgr: [BaseServerTask]Server task (WriteInterestRecordTask) got error response.
com.android.volley.VolleyError: Unable to obtain auth token - is the device online?
at bnz.a(:com.google.android.gms:5113)
at bjv.run(:com.google.android.gms:65)
at bjt.a(:com.google.android.gms:249)
at bjt.handleMessage(:com.google.android.gms:242)
at jly.run(:com.google.android.gms:139)
at jmg.run(:com.google.android.gms:450)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at jqr.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
10-05 13:43:15.101 3819-19797/? E/ctxmgr: [SyncServerInterestRecordsOperation]Failure response from WriteInterestRecord. StatusCode = -1
Need help, Thanks in advance !!
This issue has been observed and is reported on google samples github. No reported solution to this issue.
Fatal Exception: java.lang.NullPointerException
at com.x.c.l.d(ProGuard:713)
at com.x.c.e.c(ProGuard:161)
at com.x.b.a.a(ProGuard:41)
at com.x.b.a$1.run(ProGuard:646)
at com.x.c.o$1.run(ProGuard:110)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
I think this code was injected by a malware (Xposed etc) or your app was hacked, repackaged and published elsewhere. I receive the same crashes. If you looked into stack traces from other threads you would very likely find there an ad serving code. I did find it, unfortunately.
Can anybody help me with exception in my Android app. I use Google Analytics and have exception:
java.lang.OutOfMemoryError at com.google.android.d.d.g.a(SourceFile:51) at com.google.android.d.c.k.b(SourceFile:432) at com.google.android.d.c.c.a(SourceFile:241) at com.google.android.d.c.a.f.b(SourceFile:311) at com.google.android.d.c.a.f.a(SourceFile:108) at com.google.android.d.c.h.c(SourceFile:615) at com.google.android.d.d.s.run(SourceFile:242) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)
I'm using google analytics and google interstitial and bottom banner ads version 8.1.0 in my android app.
Your application uses too much memory - that's the basic explanation. There can be many reasons for that, but in general all of them are just memory leaks or (more frequently) long living objects. Use memory analyzer in Android Studio to get more information about places where problem starts. you should also read this Google's article: http://developer.android.com/tools/debugging/debugging-memory.html
I have been trying to set up sample Android app of Google Identity Toolkit demo (gitkitdemo).
Have followed the instructions and successfully set up the sample. Login worked using my google accounts sometimes, but a lot of times mostly over mobile data(3G) I get following error:
https://www.googleapis.com/identitytoolkit/v3/relyingparty/createAuthUri?key=AIzaS3432QdokameMhwSzuQh_GTz423423U
07-26 14:14:13.300 5108-7306/pradeep.idtoolkit.demo E/GoogleIdpClient﹕ transient error encountered: NetworkError
java.io.IOException: NetworkError
at com.google.android.gms.auth.GoogleAuthUtil.zza(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.identitytoolkit.idp.google.GoogleIdpClient$1.call(GoogleIdpClient.java:130)
at com.google.identitytoolkit.idp.google.GoogleIdpClient$1.call(GoogleIdpClient.java:120)
at com.google.identitytoolkit.executor.ProgressRequestExecutor$2.doInBackground(ProgressRequestExecutor.java:84)
at com.google.identitytoolkit.executor.ProgressRequestExecutor$2.doInBackground(ProgressRequestExecutor.java:71)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
My internet is working fine. Couldn't understand the reason for this. Is google identity toolkit production ready?
Please help if you have set this up before and can help me out.
Thanks.
did you properly configure your dev console set up and update the demo app settings?
https://developers.google.com/identity/toolkit/android/quickstart
Please provide more details on your error.