Git Product home page Git Product logo

Comments (6)

dant3 avatar dant3 commented on May 17, 2024

👍 I like the philosophy of not creating that you don't need.

from squirrel.

hekailiang avatar hekailiang commented on May 17, 2024

Hi agrusha,

thanks for let me knowing about this problem.

I am not familiar with android, so I am not quite understand how Android would revive. Because ManagementService is still missing the java.lang.management package even I make instantiate StateMachineBuilder without involving java.lang.management package.

It would be helpful if you can give me more information about this. And also it would be great if you can provide a pull request.

from squirrel.

agrusha avatar agrusha commented on May 17, 2024

Well... The actual crash appears to happen only at the moment when android tries to create the instance of ManagementService. As far as it is initiated during StateMachineBuilderImpl creation process it is inevitable that Android bumps into it and throws an exception. But if one makes the way not to initiate the ManagementService object if there is no need in it, then Android won't fall.
Actually I'm working on such sort of solution by myself. I'll let You know if I'd succeed in that.

from squirrel.

hekailiang avatar hekailiang commented on May 17, 2024

Great, thanks!
But my understanding is that ManagementService will cause compile failure as it import javax.management.* which is missing in Android. And defer initiate ManagementService won't help. Is that true? If not, how you solved this problem?

from squirrel.

agrusha avatar agrusha commented on May 17, 2024

No, importing does not lead to crash, only trying to use unsupported classes directly

from squirrel.

dant3 avatar dant3 commented on May 17, 2024

It looks like it was resolved in 8074cec, I tried 0.3.4 release with this fix cherry-picked and it works for me.

from squirrel.

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.