简体   繁体   中英

When I try to build app by Android studio , I get the following error that the Gradle tasks connects timeout

Information:Gradle tasks [assemble] Error:Failed to complete Gradle execution.

Cause: Connection timed out: connect

This may be a network issue. Try to run this on Gradle CLI:

./gradlew tasks --offline

See the docs .

or

Goto Settings >> Build, Execution, Deployment >> Build tools >> Gradle and tick on " Offline Work ".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM