I haven\'t used Android Studio in a while, but decided to update everything and create a new project and I get the above error, if I go to Preferences -> Build, Execution, D
To enable or disable Gradle's offline mode, View > Tool Windows > Gradle from the menu bar. Then, near the top of the Gradle window, click Toggle Offline Mode
you can also watch this video https://youtu.be/lbCM8N8ItRI