Giter VIP home page Giter VIP logo

Comments (4)

singwhatiwanna avatar singwhatiwanna commented on May 20, 2024

lab分支已经支持多进程模式,插件版本不同的时候插件进程会自动重启并装载新版本插件,请看下lab分支的实现即可。

from dynamic-load-apk.

lindaojiang avatar lindaojiang commented on May 20, 2024

very good.

from dynamic-load-apk.

lindaojiang avatar lindaojiang commented on May 20, 2024

lab分支代码,用了圆形进度条https://github.com/dmytrodanylyk/circular-progress-button,在另一个进程中运行插件,
测试了主进程加载完旧版插件,再升级加载新版插件,主进程也会引发java.lang.ClassCastExecption com.dd.CircularProgressButton to com.dd.CircularProgressButton错误,
把主进程killed掉 再加载新版插件没问题(我是这么解决的)
想来是不能在主进程执行2次loadApk同一个插件, 最好在主进程不要执行createDexClassLoader createAssetManager createResources 等操作,新建了在主进程没用也浪费内存,无法释放

from dynamic-load-apk.

singwhatiwanna avatar singwhatiwanna commented on May 20, 2024

@lindaojiang
需要按照lab分支来,把相应组件声明在一个单独的进程中。

from dynamic-load-apk.

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.