If you encountered another error which says “Windows Store cache and licenses may be corrupt.”, like a few others have, refer to subsequent methods.
In the Windows Settings, navigate to Update and security > Troubleshoot and select Windows Store Apps at the bottom of the list and click Run the troubleshooter.Press the Windows Key + I to launch the Windows Settings.Solution 1: Run Windows Store Apps Troubleshooter