luckybilly / CC

业界首个支持渐进式组件化改造的Android组件化开源框架,支持跨进程调用。Componentize your android project gradually.
https://luckybilly.github.io/CC-website/
Apache License 2.0
4.05k stars 635 forks source link

将组件用VirtualAPK编译成插件后,CC调用不到 #145

Closed QQSJDYKA closed 5 years ago

QQSJDYKA commented 5 years ago

插件编译成功,并且可以运行,其他功能正常,调用CC时返回-5.

2019-06-27 22:01:34.710 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> start to call:{"callId":"com.eebbk.askhomework:1","context":"com.eebbk.askhomework.AHApplication@e4a914f","componentName":"main","actionName":"halo","timeout":2000,"withoutGlobalInterceptor":false,"callbackOnMainThread":false,"params":{},"interceptors":"[]"} 2019-06-27 22:01:34.714 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> totalCC count=1. add monitor for:{"callId":"com.eebbk.askhomework:1","context":"com.eebbk.askhomework.AHApplication@e4a914f","componentName":"main","actionName":"halo","timeout":2000,"withoutGlobalInterceptor":false,"callbackOnMainThread":false,"params":{},"interceptors":"[]"} 2019-06-27 22:01:34.714 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> process cc at thread:main, pool size=2 2019-06-27 22:01:34.714 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> start interceptor chain 2019-06-27 22:01:34.715 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> start interceptor:com.billy.cc.core.component.ValidateInterceptor, cc:{"callId":"com.eebbk.askhomework:1","context":"com.eebbk.askhomework.AHApplication@e4a914f","componentName":"main","actionName":"halo","timeout":2000,"withoutGlobalInterceptor":false,"callbackOnMainThread":false,"params":{},"interceptors":"[]"} 2019-06-27 22:01:34.716 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> start interceptor:com.billy.cc.core.component.RemoteCCInterceptor, cc:{"callId":"com.eebbk.askhomework:1","context":"com.eebbk.askhomework.AHApplication@e4a914f","componentName":"main","actionName":"halo","timeout":2000,"withoutGlobalInterceptor":false,"callbackOnMainThread":false,"params":{},"interceptors":"[]"} 2019-06-27 22:01:34.719 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> end interceptor:com.billy.cc.core.component.RemoteCCInterceptor.CCResult:{"success":false,"code":-5} 2019-06-27 22:01:34.719 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> end interceptor:com.billy.cc.core.component.ValidateInterceptor.CCResult:{"success":false,"code":-5} 2019-06-27 22:01:34.720 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> end interceptor chain.CCResult:{"success":false,"code":-5} 2019-06-27 22:01:34.720 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> perform callback:null, CCResult:{"success":false,"code":-5} 2019-06-27 22:01:34.720 4864-4864/com.eebbk.askhomework I/ComponentCaller_VERBOSE: (com.eebbk.askhomework)(main)com.eebbk.askhomework:1 >>>> cc finished.CCResult:{"success":false,"code":-5}

QQSJDYKA commented 5 years ago

看了下代码。是打包时不依赖这个组件导致的,需要使用动态加载组件的方式,有没有别的方案呢

luckybilly commented 5 years ago

@QQSJDYKA 抱歉哦,目前还没有支持插件化开发的计划