Android-Studio sync failed error 'AsmBackGenerator'


I am using Android-Studio and it asked my to sync my gradle project right after I changed my git branch. Which is normal since my gradle file changed.

But when it sync it returns an error:

Gradle ‘pasteque-android’ project refresh failed
Error:Cause: org/gradle/api/internal/AsmBackedClassGenerator

From my master branch, here is:

From my ‘validate’ branch, here is:

My gradle file in my validate branch is copy post from blogs for better use of code check in java for android.
But right now I am in my master branch and gradle should work.
I have already invalidate and restart my intellIJ.

I really don’t know what is this bug.

Thanks in advance for your help!