Ailurus

Results 15 comments of Ailurus

@want-gone 如果 `gradle.properties` 里的 `isDebug` 为 true ,每个 module 都是 Application 了,点击跳转的时候,会找不到 `cn.easydone.componentizationlibrary.LibraryActivity` ,所以会 crash ,这里只是写了个 demo ,保证编译通过,实际项目里要自己去处理的。 只有`isDebug` 为 false ,子 module 为 Library ,这样在运行期才会找得到 `cn.easydone.componentizationlibrary.LibraryActivity` 。 这也是**组件化思想**的核心,在 debug...

@want-gone isDebug = true 的时候,app 和 componentizationlibrary 都是 Application ,都是可以安装的。在 componentizationlibrary 的 build.gradle 里有一段代码,可以生成一个 jar ,在 app 里 provided 了这个 jar ,保证 isDebug = true 时, 编译 app 能通过(但是运行时还是会报类找不到)。这样做只是为了保证正常编译,平时开发的时候要用其他方式去做跳转。

乒乓圈,一个外包应用,接手的人不会 RxJava ,就没法维护,哈哈

https://cnodejs.org/topic/59142d12ba8670562a40ef4d 今天也遇到这个问题了,这里有个回帖,解释的很清楚了。 ![image](https://user-images.githubusercontent.com/5643349/48765725-c0bfce00-eced-11e8-9fa7-8fecdb510889.png)