4.26/4.25 mobile armv7\gradle\rungradle.bat Help!

I’ve been trying to solve this for 4 days now and I 've tried everything! Please help me!

Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

im also getting the same problem i thought it could be a ndk and sdk problem but its not working i think its a problem with gradle i dont know how to intall manually.

Hi, I sold the problem (sorry for not responding).
I solved by uninstall and reinstall the ndk and sdk folders and it worked for me!