老项目结构如下,
老项目里各个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]'
老项目结构如下, 老项目里各个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]'