Gradle:Failed to notify build listener.

之前是gradle 4.4版本,插件 是3.1.4
升级到 5.1.1,插件版本 3.4.1
编译项目

FAILURE: Build failed with an exception.

* What went wrong:
Failed to notify build listener.
> java.lang.AbstractMethodError (no error message)

* 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.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 23s
Failed to notify build listener.

清除缓存,重启Android studio问题依然存在。


image.png

升级Android studio 到3.4.1版本可以 解决此问题。低版本的Android studio 没有高版本的gradle plugins插件,即使在build.gradle下配置好了对应的版本,依然无法正常编译项目

你可能感兴趣的:(Gradle:Failed to notify build listener.)