If the soft methods via gradle file / "Invalidate caches" and the other IDE tools do not work, use the hard way:
- Exit Android Studio
- Navigate in your project to the
.idea
folder - Just Rename the
libraries
folder - Restart Android Studio. It should now recreate the
libraries
folder and work again.