Gradle同步失败:读取超时

时间:2018-08-13 23:24:28

标签: android android-gradle

# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

Android Studio给了我这个错误,尽管gradle.properties里面没有代理:

gradle sync failed Read time out

1 个答案:

答案 0 :(得分:3)

问题已解决:删除了home中的gradle.properties文件。然后,Android Studio开始下载丢失的文件。