whenever i try running an app on Android studio 3.6. it brings this error... how can i fix this so that my apps can run in an emulator

68 views Asked by At

[enter image description here] FAILURE:Build failed with an exception

[1]: https://i.stack.imgur.com/NE78D.jpg What went wrong

1

There are 1 answers

0
A_Singh7 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.