Giter VIP home page Giter VIP logo

Comments (8)

Fqceless avatar Fqceless commented on August 21, 2024 1

To anyone still having this problem, hopefully this helps.
I was trying to get around this for hours, and the solution I found was this:

protected void onDestroy(){
        try {
            super.onDestroy();
        } catch (Exception e) {
            super.finishAndRemoveTask();
        }
    }
}

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.
I was able to just catch the exception and run this random function to finish the task after the error was thrown.
So far after my testing, this solution has held up.

Hopefully this can help, or give you direction to fix it!

Note: This worked for Gradle version 8.0.2

from mobilevisionbarcodescanner.

damms005 avatar damms005 commented on August 21, 2024

@Ssehgal29 were you able to get around this??

from mobilevisionbarcodescanner.

Ssehgal29 avatar Ssehgal29 commented on August 21, 2024

Yess it's because of gradle incompatibility... Just go to project structure and set your gradle to 4.0.0 and everything works perfectly.

from mobilevisionbarcodescanner.

KushalMehta1995 avatar KushalMehta1995 commented on August 21, 2024

@damms005 were you able to get around this??

from mobilevisionbarcodescanner.

KushalMehta1995 avatar KushalMehta1995 commented on August 21, 2024

@Ssehgal29 were you able to get around this?? It's not working in my case.

from mobilevisionbarcodescanner.

damms005 avatar damms005 commented on August 21, 2024

@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)

from mobilevisionbarcodescanner.

KushalMehta1995 avatar KushalMehta1995 commented on August 21, 2024

@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

from mobilevisionbarcodescanner.

kprathap23 avatar kprathap23 commented on August 21, 2024

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

from mobilevisionbarcodescanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.