Tried the same issue on Ubuntu / Linux. In my case, the solution was to change the way I save my project from relative to absolute.
Trying to create a new project in ~ / AndroidStudioProjects / MyApp will create this error
But if I specified the full path / home / myusername / AndroidStudioProjects / MyApp, the problem was resolved.
source
share