Comments (7)
@ayou6232290
注意事项
- 合适区分this和that
当this表示的是context,要用that,当然,部分常用api已经在DLBasePluginActivity和DLBasePluginFragmentActivity中被重写,这些重写的api,可以不用that。
当this表示的是接口,还是用this。
- 主题问题
目前DL对主题相关的支持有要求,首先host的application、DLProxyActivity、DLProxyFragmentActivity均不能有主题,host中其他activity可以有主题。插件中所有的activity都可以有主题,但是只能是系统主题(经过测试,发现系统透明主题也不支持),目前DL暂时不支持插件的自定义主题,不过,自定义主题可以通过系统主题+style来代替。注:如果不按这个来操作,将会导致三星手机上DL无法正常工作。
- 插件打包的问题
宿主和插件不需要通信,两者是独立开发的,宿主引用DL的jar包(dl-lib.jar),插件也需要引用DL的jar包,但是不能放入到插件工程的libs目录下面,换句话说,就是插件编译的时候依赖jar包但是打包成apk的时候不要把jar包打进去,这是因为,dl-lib.jar已经在宿主工程中存在了,如果插件中也有这个jar包,就会发生类链接错误,原因很简单,内存中有两份一样的类,重复了。至于support-v4也是同样的道理。
from dynamic-load-apk.
我在开发过程中也遇到相同的问题,用dl启动一个空工程也会出现如上错误,机型 三星galaxy zoom
from dynamic-load-apk.
@smengyu 请参考我上面的那段话,按规范行事即可。
from dynamic-load-apk.
我已经解决了,有需要的可以给我发邮件[email protected],本来想给他们修改下的,发现改的代码很多
from dynamic-load-apk.
push the github~!?
from dynamic-load-apk.
已经提交了,可以参考安卓源码就知道为什么我这么写了
from dynamic-load-apk.
在 2015-03-07 12:21:45,"mandysss" [email protected] 写道:
@1liufeilong 你提交在哪个分支上?
—
Reply to this email directly or view it on GitHub.
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.