https://codelabs.developers.google.com/codelabs/fido2-for-android/index.html?index=..%2F..index#0 https://www.youtube.com/watch?v=290KDa0chNs
I tried to follow the following website and youtube video to create a fido2 app but always have trouble when I pressed the "+" button to generate credentials, and the error messages look like: run error messages E/AuthRepository: Cannot call registerRequest java.lang.IllegalStateException: Expected a name but was BEGIN_OBJECT at android.util.JsonReader.nextName(JsonReader.java:392) at com.example.android.fido2.api.AuthApi.parsePublicKeyCredentialCreationOptions(AuthApi.kt:307) at com.example.android.fido2.api.AuthApi.access$parsePublicKeyCredentialCreationOptions(AuthApi.kt:53) at com.example.android.fido2.api.AuthApi$registerRequest$2.invoke(AuthApi.kt:140) at com.example.android.fido2.api.AuthApi$registerRequest$2.invoke(AuthApi.kt:139) at com.example.android.fido2.api.AuthApi.result(AuthApi.kt:529) at com.example.android.fido2.api.AuthApi.registerRequest(AuthApi.kt:139) at com.example.android.fido2.api.AuthApi$registerRequest$1.invokeSuspend(Unknown Source:15) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
I think the problem may be solved by solving the errors at JsonReader.java, but I don't know how to solve that. Can anyone solve those? Plz,thank U Problems error messages