简书链接:Unexpectedscopesfoundinfolder问题的原因和解决
文章字数:120,阅读全文大约需要1分钟

1
2
3
4
5
6
* What went wrong:
Execution failed for task ':insertqqmodule:transformNativeLibsWithMergeJniLibsForDebug'.
> Unexpected scopes found in folder 'G:\newproject\qqrepacket_pro\insertqqmodule\build\intermediates\transforms\mergeJniLibs\debug'. Required: PROJECT. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

出现的原因,从模块变成主项目后编译了一遍,又被我通过变量控制改成了模块,这时候直接调用buildNdk相关的方法直接报错了,所以直接选择这个模块clear(没必要clear 所有 ,浪费时间)或者手动把build文件夹删除再泡一遍

image.png