I am getting this error while compilation of my code:
Can anyone help me how to solve this error or what might be causing this error?
Edit1: Gradle
Try to update latest versions:
Then, AndroidStudio -> File -> invalidate Cashes/Restart.
It helped me.