Comments (6)
When the new Java version is released, our process will automatically find it and bind the new version as part of the regular periodic updates process. So there's nothing additional that we need to do to fix this issue.
from androidx.
he runtime exception you are encountering, java.lang.NullPointerException, suggests that a parameter specified as non-null is actually null during the execution of the method onResult in the CredentialProviderFrameworkImpl$onClearCredential$outcome$1 class.
To resolve this issue, you need to investigate why the parameter response is null when it is expected to be non-null. Here are some steps you can take to debug and resolve the issue:
Check Parameter Initialization: Ensure that any parameters being passed to the onResult method are properly initialized before calling the method.
Review Callback Implementation: Review the implementation of the onResult method in the CredentialProviderFrameworkImpl$onClearCredential$outcome$1 class. Verify that it handles all possible scenarios and does not assume that the response parameter will always be non-null.
Check Caller Code: Review the code where you invoke the _credentialManager.ClearCredentialState or _credentialManager.ClearCredentialStateAsync methods. Make sure that you are handling the response properly and that it is not null before passing it to any callback methods.
Check AndroidX Credentials Library Version: Ensure that you are using the latest version of the AndroidX Credentials library. Sometimes, issues like this are resolved in newer library versions.
Check Documentation and Community Forums: Review the documentation for the AndroidX Credentials library and check community forums or issue trackers for any known issues or solutions related to the onResult method and the ClearCredentialState functionality.
By following these steps and debugging the code systematically, you should be able to identify the root cause of the NullPointerException and implement the necessary fixes to resolve the runtime exception.
from androidx.
Seems to be a problem in the original library:
https://issuetracker.google.com/issues/314926460?pli=1
The call ClearCredentialStateAsync
doesnt work on Google Pixel 6(v34)
but it works on Samsung S9(v29)
from androidx.
Closing as this seems to be an issue in the underlying Google AndroidX Java package.
from androidx.
@jpobst shouldnt this be kept open unit new version of the package fixing the problem is released ?
Because it requires you to create update for androidx.credentials
containing the bug fix.
from androidx.
Perfect, thank you
from androidx.
Related Issues (20)
- Type-forwarding for binding libraries HOT 3
- Deprecate Xamarin.AndroidX.Legacy.Support.V4 HOT 2
- Bind "androidx.credentials" HOT 16
- [Bug] Lottie package throwing error while creating the release build in Android after switching to target framework 13 HOT 26
- Bind "androidx.health:health-services-client" HOT 30
- Releases - Where are they? HOT 1
- com.android.tools.r8.ResourceException: com.android.tools.r8.internal.vc: I/O exception while reading HOT 3
- AndroidX.Credentials ICredentialManagerCallback wrong parameter types. HOT 2
- Can't get past `javac: error: package androidx.fragment.app does not exist` HOT 4
- CameraSelector.Builder().AddCameraFilter effectively unusable (cannot select specific camera lens) HOT 2
- Xamarin.AndroidX.Biometric not building starting at version 1.1.0.17 (.NET MAUI) HOT 3
- Issue with CustomTabsActivityManager and multiple activities HOT 3
- Bind "androidx/emoji2/emoji2-picker" HOT 2
- Announcement: Xamarin.Android and .NET 6/7 no longer supported
- "Specified cast is not valid" when using SetOnItemSelectedListener of NavigationBarView HOT 6
- `Xamarin.Jetbrains.Annotations` namespace clash with `JetBrains.Annotations` causes CS0433 build failure HOT 1
- Can't install Xamarin.AndroidX.AppCompat and RecyclerView latest versions into Xamarin project HOT 2
- androidx.profileinstaller.ProfileInstaller.writeProfile java.lang.ClassNotFoundException: Didn't find class "com.google.common.util.concurrent.ListenableFuture" on path: DexPathList HOT 6
- Announcement: .NET 7 no longer supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidx.