Android studio gradle report can not generate proxy class

Hi,I’m come from China. I tried to run gradlew build --refresh-dependencies command in terminal ,but I get this error
*** What went wrong:**
A problem occurred configuring project ‘:app’.
> Could not generate a proxy class for class com.android.build.gradle.tasks.BuildArtifactReportTask.

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

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

I don’t know how to fix this problem, I feel very helpless after many times trial and still have no idea, Is there any body can help me, hope get soon response,thanks