Unsupported method: TaskExecutionResult.getExecutionReasons().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
现象:好久没有跑这个工程了,拉下最新代码开始编译,出现问题;
解决过程:
1,全局没有搜索到TaskExecutionResult.getExecutionReasons()。
2,clean task可以跑过,clean project不行
3,百度:网上好多建议升级gradle插件和gradle版本的,遂尝试了一下,但是由于高版本有些api不兼容,所以有退回到低版本了,再次编译居然过了。。。
网友评论