In my own case, it was a trailing space in the lib folder. like this lib /main instead of lib/main You should probably double check if you encounter this issue.
lib /main
lib/main