what is the actual root cause of this issue? I already sync with gradle files but eventually failed.
That could be fixed in one or two steps, depending on how nice is Android Studio today:
The reason behind the first solution not working could be related on gradle cached dependencies problems, but who knows