1

There are 1 best solutions below

0
On

Disable the offline mode of Gradle by going to File - Project Settings - Build, Execution, Deployment - Gradle - Remove --offline in Command Line options.(Or, simply click the -//- icon in the Gradle window.)

Then, connect to the internet and run Gradle build.

After the build has run once, you can enable the offline mode again.