今天修改android 项目为 library 之后,同步报错
Cannot do a scope-restricted OriginalStream
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project
> Cannot do a scope-restricted OriginalStream
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project
...
Caused by: java.lang.UnsupportedOperationException: Cannot do a scope-restricted OriginalStream
...
错误原因
- 我遇到的错误原因是库应用中引入了
click-anti-shake 插件,该插件不是通用插件
- 取消该库引入即可