-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to destroy activity null pointer exception at barcodecapture.ondestroy #69
Comments
@Ssehgal29 were you able to get around this?? |
Yess it's because of gradle incompatibility... Just go to project structure and set your gradle to 4.0.0 and everything works perfectly. |
@damms005 were you able to get around this?? |
@Ssehgal29 were you able to get around this?? It's not working in my case. |
@Kush1195 Yes. I had to clone this repo locally and rebuild the app locally, and included it in my app as a local library dependency (from my project's graddle settings) |
Please Do soon. Thank You |
Any update on this issue. How can we fix this.. i tried to change gradle to 4.0.0 still not working. please let me know if any one fixed and the related all gradle configurations . I used this library in a flutter plugin https://pub.dev/packages/mvbarcodescan. Now i am getting this crash issue |
To anyone still having this problem, hopefully this helps.
The class I was using would throw this error every time it got destroyed (super.onDestroy() was called), and it had something to do with the onDestroy methods being inherited by this repo. Hopefully this can help, or give you direction to fix it! Note: This worked for Gradle version 8.0.2 |
whenever i call onbackpressed or perform an intent the app crashes and show the error unable to destroy the activity Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference.
The text was updated successfully, but these errors were encountered: