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

运行安装App时报 transformClassesWithCc-registerForComponentDebug #135

Closed MrX-Andy closed 5 years ago

MrX-Andy commented 5 years ago

Task :app:transformClassesWithCc-registerForComponentDebug FAILED start cc-register transform... ccregister = { cacheEnabled = true registerInfo = [ { scanInterface = com/billy/cc/core/component/IComponent scanSuperClasses = [ ] codeInsertToClassName = com/billy/cc/core/component/ComponentManager codeInsertToMethodName = registerMethodName = public static void com/billy/cc/core/component/ComponentManager.registerComponent paramType = 'object' include = [ '.' ] exclude = [ 'com/billy/cc/core/component/.' './R(\$[^/])?' './BuildConfig$' ] }, { scanInterface = com/billy/cc/core/component/IGlobalCCInterceptor scanSuperClasses = [ ] codeInsertToClassName = com/billy/cc/core/component/GlobalCCInterceptorManager codeInsertToMethodName = registerMethodName = public static void com/billy/cc/core/component/GlobalCCInterceptorManager.registerGlobalInterceptor paramType = 'object' include = [ '.' ] exclude = [ 'com/billy/cc/core/component/.' './R(\$[^/])?' './BuildConfig$' ] }, { scanInterface = com/billy/cc/core/component/IParamJsonConverter scanSuperClasses = [ ] codeInsertToClassName = com/billy/cc/core/component/remote/RemoteParamUtil codeInsertToMethodName = registerMethodName = public static void com/billy/cc/core/component/remote/RemoteParamUtil.initRemoteCCParamJsonConverter paramType = 'object' include = [ '.' ] exclude = [ 'com/billy/cc/core/component/.' './R(\$[^/])?' '.*/BuildConfig$' ] } ] } cc-register-----------isIncremental:false--------extension.cacheEnabled:true--------------------

cc-register cost time: 0 ms to scan jar file:E:\Android\repo\gbei\master\im\app\build\intermediates\transforms\cc-register\component\debug\0.jar cc-register cost time: 22 ms to scan jar file:E:\Android\repo\gbei\master\im\app\build\intermediates\transforms\cc-register\component\debug\1.jar cc-register cost time: 12 ms to scan jar file:E:\Android\repo\gbei\master\im\app\build\intermediates\transforms\cc-register\component\debug\2.jar cc-register cost time: 24 ms to scan jar file:E:\Android\repo\gbei\master\im\app\build\intermediates\transforms\cc-register\component\debug\3.jar 省略........

Task :app:buildInfoGeneratorComponentDebug

FAILURE: Build failed with an exception.

as 3.4 gradle 3.3.2 cc-reguster 1.1.1

MrX-Andy commented 5 years ago

问题已找到。 解决思路:定位到cc-register scan 的那行jar,使用GUI打工看看属于那个一个jar包,然后双击shift查找,看是否有重复引用了 ,如有去除重新 clean build make 即可