Crash when using Biometric API on some devices - android

We use androidx.biometric:biometric:1.0.1 in our application, and on some devices we get an error
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setVisibility(int)' on a null object reference
at androidx.biometric.fingerprintDialogFragment.onCreateDialog(FingerPrintDialogFragment.java:199)
Code on this line is
subtitleView.setVisibility(View.VISIBLE);
How can we solve this problem? We also tried to use alpha release, but problem still available

Related

android(Flutter): camera not working in Android 11 MIUI 13. throwing CameraException(error, Attempt to invoke virtual method 'int android.hardware

Flutter camera not working throwing following exception
CameraException(error, Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference). Error thrown CaptureImageCubit.
Even we tried using 'example_app' given by the flutter camera plugin on pub.dev. it's giving the same error
Note: The user is able to use his camera on other third-party devices

attempt to invoke virtual method 'void android.view.TextureView.setSurfaceTextureListener(android.view.TextureView$SurfaceTextureListener)'

I'm getting this error when using the library RNCamera
attempt to invoke virtual method 'void
android.view.TextureView.setSurfaceTextureListener(android.view.TextureView$SurfaceTextureListener)'
on a null object reference
I reinstall the library but still getting this error. This error occurs when I updated my RN from 0.62.2 to 0.66.1. Thank you for your help on this!
I resolved this issue by running cd android && ./gradlew clean

void android.content.res.StringBlock.close() error using react-native-webrtc or jitsi

Hi, I am trying to include in my project using react-native-webrtc react native module but I am getting the following error. The main tip is that I got the same error when I used jitsi. Has anyone encountered this problem before? I've never seen a similar anywhere.
1. Application is receiving build success
2. App crashes when runtime
3. Unfortunately I have no more arguments for solving this problem.
E/System: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.res.StringBlock.close()' on a null object reference
at android.content.res.ApkAssets.close(ApkAssets.java:201)
at android.content.res.ApkAssets.finalize(ApkAssets.java:191)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:289)
at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:276)
at java.lang.Daemons$Daemon.run(Daemons.java:137)
at java.lang.Thread.run(Thread.java:929)

Unable to destroy activity Android: Google Play Console Error

I am trying to launch my app into Production on Google Playstore. I have used Flutter to create the app. But in the pre-launch report I am getting error:
Stacktrace:
java.lang.RuntimeException: Unable to destroy activity {com.stech.ebox_expenses/com.example.ebox_expenses.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.lifecycle.e.c(androidx.lifecycle.h)' on a null object reference
FATAL EXCEPTION: main
Process: com.stech.ebox_expenses, PID: 12391
java.lang.RuntimeException: Unable to destroy activity {com.stech.ebox_expenses/com.example.ebox_expenses.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.lifecycle.e.c(androidx.lifecycle.h)' on a null object reference
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4504)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4522)
at android.app.ActivityThread.-wrap5(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1697)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6647)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.lifecycle.e.c(androidx.lifecycle.h)' on a null object reference
at com.mr.flutter.plugin.filepicker.FilePickerPlugin.j(Unknown Source:21)
at com.mr.flutter.plugin.filepicker.FilePickerPlugin.e(Unknown Source:0)
at io.flutter.embedding.engine.c.h(Unknown Source:54)
at io.flutter.embedding.android.f.o(Unknown Source:58)
at io.flutter.embedding.android.e.G(Unknown Source:7)
at io.flutter.embedding.android.e.onDestroy(Unknown Source:11)
at android.app.Activity.performDestroy(Activity.java:7241)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1271)
at androidx.test.runner.MonitoringInstrumentation.callActivityOnDestroy(MonitoringInstrumentation.java:1)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4491)
... 9 more
I try to find anything discussing this and I found one Stackoverflow question which was recieved badly and downvoted; Here's a ref to the post. I am not to sure why this is happening and I am not sure whether it is external problem which I can fix or an internal bug.
When I downloaded the app from the Playstore when it was production, it displayed a white screen when I opened it and stayed like this. I am not sure if me getting this error is a result of that or not either.
Any help on the matter will be appreciated!
I have managed to fix both problems which I was having. I fixed the first problem of this error by updating file_picker library to version 2.10. The issue was fixed in version 2.0.12. I also fixed the second issue of the white screen in the app when it started by downgrading to: classpath 'com.android.tools.build:gradle:3.4.3'. Here's the reference to the post which helped me.

Getting NullPointerException on KeyStore.aliases() in Crashlytics reports for Android

Crashlytics report for my android app shows that a considerable number of my users are getting the following null pointer exception. Most of my users who get this error are on Android 6. It happens only when the build is obfuscated.
The crash is caused by a call to,
org.stellar.sdk.Server(String uri)
How do I fix this? Any help would be appreciated.
Caused by java.lang.NullPointerException: Attempt to invoke virtual method
'java.util.Enumeration java.security.KeyStore.aliases()' on a null object reference
at com.android.org.conscrypt.TrustManagerImpl.acceptedIssuers(TrustManagerImpl.java:185)
at com.android.org.conscrypt.TrustManagerImpl.getAcceptedIssuers(TrustManagerImpl.java:603)
at shadow.okhttp3.internal.platform.Platform.buildTrustRootIndex(Platform.java)
at shadow.okhttp3.internal.platform.Platform.afterHandshake(Platform.java)
at shadow.okhttp3.internal.tls.CertificateChainCleaner.get(CertificateChainCleaner.java:8)
at shadow.okhttp3.OkHttpClient.<init>(OkHttpClient.java:8)
at shadow.okhttp3.OkHttpClient$Builder.build(OkHttpClient.java:7)
at org.stellar.sdk.Server.<init>(Server.java:7)
at com.myapp.MyStellarManager.<clinit>(MyStellarManager.java)
at com.myapp.MainVM$observableData$1.invokeSuspend(MainVM.java:2)
at kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(Intrinsics.java)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:2)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$getCorePoolSize$p(CoroutineScheduler.java)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.java:18)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java:18)

Categories

Resources