@cyber the file is not relative to the dir containing the source code. By coincidence those directories may be the same, but it's important to. It is relative to the working directory.
'911 Lone Star' Season 4 Finale Review InBetweenDrafts
So the problem arises from inconsistency in the java version installed on your machine, the default java version configured on your android studio and the gradle version for.
'911 Lone Star' Season 4 Finale Review InBetweenDrafts