I\'m using the new Android Studio 3.6 Canary 9 to test new functionalities, and I cannot enable Gradle\'s offline mode.
In Android Studio P
In Android Studio 3.6, You can toggle Gradle from offline to online mode (See screenshotenter image description here) and hit Gradle sync. This solved my issue.