Coder Social home page Coder Social logo

Comments (7)

singwhatiwanna avatar singwhatiwanna commented on June 9, 2024

@ayou6232290
注意事项

  1. 合适区分this和that

当this表示的是context,要用that,当然,部分常用api已经在DLBasePluginActivity和DLBasePluginFragmentActivity中被重写,这些重写的api,可以不用that。

当this表示的是接口,还是用this。

  1. 主题问题

目前DL对主题相关的支持有要求,首先host的application、DLProxyActivity、DLProxyFragmentActivity均不能有主题,host中其他activity可以有主题。插件中所有的activity都可以有主题,但是只能是系统主题(经过测试,发现系统透明主题也不支持),目前DL暂时不支持插件的自定义主题,不过,自定义主题可以通过系统主题+style来代替。注:如果不按这个来操作,将会导致三星手机上DL无法正常工作。

  1. 插件打包的问题

宿主和插件不需要通信,两者是独立开发的,宿主引用DL的jar包(dl-lib.jar),插件也需要引用DL的jar包,但是不能放入到插件工程的libs目录下面,换句话说,就是插件编译的时候依赖jar包但是打包成apk的时候不要把jar包打进去,这是因为,dl-lib.jar已经在宿主工程中存在了,如果插件中也有这个jar包,就会发生类链接错误,原因很简单,内存中有两份一样的类,重复了。至于support-v4也是同样的道理。

from dynamic-load-apk.

smengyu avatar smengyu commented on June 9, 2024

我在开发过程中也遇到相同的问题,用dl启动一个空工程也会出现如上错误,机型 三星galaxy zoom

from dynamic-load-apk.

singwhatiwanna avatar singwhatiwanna commented on June 9, 2024

@smengyu 请参考我上面的那段话,按规范行事即可。

from dynamic-load-apk.

1liufeilong avatar 1liufeilong commented on June 9, 2024

我已经解决了,有需要的可以给我发邮件[email protected],本来想给他们修改下的,发现改的代码很多

from dynamic-load-apk.

Sopage avatar Sopage commented on June 9, 2024

push the github~!?

from dynamic-load-apk.

1liufeilong avatar 1liufeilong commented on June 9, 2024

已经提交了,可以参考安卓源码就知道为什么我这么写了

from dynamic-load-apk.

1liufeilong avatar 1liufeilong commented on June 9, 2024

master...1liufeilong:patch-1

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

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.