Closed shingohu closed 6 years ago
问题大致定位到了,应该是:
__content__.json
文件,其中记录了组件module在以application方式编译时的scope值
__content__.json
时发现与预期的不一致,于是报错注:这个问题是2.0版优化组件切换运行模式的方式时出现的,1.x版本在local.properties中切换运行方式后需要sync / clean后才能单独编译运行,clean后组件module中的编译缓存会被清除,所以不会出现这个问题
后面我来想想怎么解决,在我解决之前,可以先用以下方式来避免这个问题:
这个反馈很有用,也很及时,非常感谢!
@shingohu cc-register 1.0.1版已修复
@luckybilly 报错的位置换了个地方 Unexpected scopes found in folder '/Users/hujie/MEGA/AndroidStudio/CCProject/loginmodule/build/intermediates/transforms/stripDebugSymbol/debug'. Required: PROJECT. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS
最新cc-register 1.0.2版本已修复上面提到的两个问题
Unexpected scopes found in folder '/Users/xx/MEGA/AndroidStudio/CC/demo_component_b/build/intermediates/transforms/mergeJniLibs/debug'. Required: PROJECT. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS
重现步骤,使用demo,在demo_base中引入一个包含.so的库如:com.bugtags.library:bugtags-lib:3.0.0 1.运行demo_component_b正常 2.切换运行demo爆出上面异常
https://blog.csdn.net/fengrui_sd/article/details/78658103 这里面有说到