Getting error Class Magento\Authorization\Model\Acl\Role\GroupFactory
does not exist
Magento 2 is quite complex to understand. We frequently get this error while developing the store. Here is the solution to fix this error.
1) go to the var folder and find generation. now remove the folder.
2) Now run below code using the command line
php bin/magento setup:di:compile
It will automatically create all folder in the generation folder.
3) Then clear cache using below code:
php bin/magento cache:flush
Now, Run your store it will run without error.