Getting an error You are trying to import an asset which contains a global game manager. This is not allowed.

At first when i opened my project there was nothing in it so i found a solution to that. Delete the library folder and let unity rebuild my project. After it did i opened my project again everything was back to normal except now im getting this error “You are trying to import an asset which contains a global game manager. This is not allowed” How can i fix this?

just rename your script named as game manager
also rename its class name same as script name

hope it will solve your problem