It seems that Apple has a limit on concurrency. Downloads can proceed normally in the shell, but when Gradle dependencies are downloaded concurrently, they are forcibly disconnected. Currently, by disabling concurrency and limiting it to one request at a time, the download issue seems to have been resolved, but since there is no concurrency in the download process, the build speed is much slower.
org.gradle.parallel=false
org.gradle.workers.max=1
org.gradle.max.worker.threads=1
systemProp.https.protocols=TLSv1.2,TLSv1.3
systemProp.com.sun.net.ssl.checkRevocation=false
systemProp.org.gradle.internal.http.tlsNoVerify=true
systemProp.gradle.sslVerify=false
systemProp.gradle.network.retry=1
systemProp.http.retry=false
systemProp.http.retry.max=1
systemProp.java.net.preferIPv4Stack=true
systemProp.java.net.preferIPv6Addresses=false
systemProp.sun.net.spi.nameservice.nameservers=114.114.114.114 #or 8.8.8.8
systemProp.sun.net.spi.nameservice.provider.1=dns,sun
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: