Comments (4)
lab分支已经支持多进程模式,插件版本不同的时候插件进程会自动重启并装载新版本插件,请看下lab分支的实现即可。
from dynamic-load-apk.
very good.
from dynamic-load-apk.
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.
@lindaojiang
需要按照lab分支来,把相应组件声明在一个单独的进程中。
from dynamic-load-apk.
Related Issues (20)
- main-plugin-a无法启动 HOT 1
- android插件化交流群 25475643 HOT 3
- DLProxyService奇怪空指针 HOT 1
- main-plugin-b运行出错 HOT 2
- java.lang.reflect.InvocationTargetException
- 编译错误,使用jdk1.8依然报这个错
- 加载插件成功,但是插件中的布局文件不显示
- Cannot call preDexLibrary() before setTargetInfo() is called
- R.drawable.xxx HOT 2
- 插件apk需要怎样配置? HOT 2
- 插件apk中含有tablayout,无法加载 HOT 1
- 新人请问下这个库还在维护吗?
- 插件混淆后就无法正常加载了,为什么? HOT 1
- 模式3的 宿主在vivo x7手机上居然会报毒,被人举报的?
- 如何处理插件中的浮窗尼?资源问题如何解决?
- 插件的服务中,xml中资源找不到 HOT 1
- 在插件里使用fragment的问题
- 不支持theme
- Attempt to invoke interface method 'void com.ryg.dynamicload.DLPlugin.onWindowAttributesChanged(android.view.WindowManager$LayoutParams)' on a null object reference HOT 1
- Berhadbitsafer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamic-load-apk.