Problem overview:
The code is determined to be bug-free, but it cannot run after switching to a new environment or git from a remote warehouse.
Development environment:
IDEA
reason:
Because idea may have problems recognizing folder types. Especially when there are many switching spaces, GIT codes and new modules. We just need to set the folder type correctly.
Solution:
Set the Resources folder as a resource folder. If there are problems with other folders, the same is true.
After setting, the folder icon changes, indicating success.