luckybilly / CC

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

项目中用到了阿里的Arouter,现在想渐进式改为CC框架 #128

Closed RFlame closed 5 years ago

RFlame commented 5 years ago

老项目结构如下,image 老项目里各个module之间使用的是阿里的Arouter模块化,现在我想渐进式改为CC模块化,引入CC依赖后, 我新增一个new_module_order,可以单独运行,但是主module,addComponent 'new_module_order',就运行失败,Unable to find source java class: 'D:\Android\work\app\mvvm\app_Android\app_module_order\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\androidx\appcompat\R.java' because it does not belong to any of the source dirs: '[D:\Android\work\app\mvvm\app_Android\app_module_order\src\main\java, D:\Android\work\app\mvvm\app_Android\app_module_order\src\debug\java, D:\Android\work\app\mvvm\app_Android\app_module_order\build\generated\source\buildConfig\debug, D:\Android\work\app\mvvm\app_Android\app_module_order\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out, D:\Android\work\app\mvvm\app_Android\app_module_order\build\generated\renderscript_source_output_dir\debug\compileDebugRenderscript\out]'

RFlame commented 5 years ago

和Arouter没啥关系,老项目和新module有依赖冲突