<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Clash on Last Stand</title><link>https://amatsuzero.github.io/LastStand/tags/clash/</link><description>Recent content in Clash on Last Stand</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 07 Sep 2026 23:14:45 +0800</lastBuildDate><atom:link href="https://amatsuzero.github.io/LastStand/tags/clash/index.xml" rel="self" type="application/rss+xml"/><item><title>网络 / 代理 / Gradle 问题修复记录</title><link>https://amatsuzero.github.io/LastStand/posts/ugreen-notes/network-proxy-gradle-troubleshooting/</link><pubDate>Mon, 07 Sep 2026 23:14:45 +0800</pubDate><guid>https://amatsuzero.github.io/LastStand/posts/ugreen-notes/network-proxy-gradle-troubleshooting/</guid><description>&lt;h2 id="环境"&gt;环境&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Clash Verge Rev（混合端口 7897），全局代理在 &lt;code&gt;~/.zshenv&lt;/code&gt;；&lt;/li&gt;
&lt;li&gt;两个机场订阅；&lt;/li&gt;
&lt;li&gt;涉及内网域名 &lt;code&gt;ugreeniot.com&lt;/code&gt;、&lt;code&gt;ugreensmart.com&lt;/code&gt;，以及一台内网 Gradle 私服（形如 &lt;code&gt;192.168.75.x&lt;/code&gt;）。&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="问题与修复"&gt;问题与修复&lt;/h2&gt;
&lt;h3 id="1-android-studio-gradle-同步失败"&gt;1. Android Studio Gradle 同步失败&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;现象&lt;/strong&gt;：拉 &lt;code&gt;kotlin-compiler-embeddable-2.4.0.jar&lt;/code&gt;（57 MB）失败，走代理 3m19s 只下 5.79 MB（29 kB/s），直连仍 3m48s 失败。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;根因&lt;/strong&gt;：AS 的 HTTP Proxy 设置不影响 Gradle daemon（Gradle 只看 &lt;code&gt;gradle.properties&lt;/code&gt; / init script）。&lt;code&gt;repo.maven.apache.org&lt;/code&gt; 走 Cloudflare CDN，Gradle 并发 HTTP/2 在国内频繁 RESET。&lt;code&gt;curl&lt;/code&gt; 单连接 4.4 MB/s 正常，但 Gradle 不行。阿里云镜像 17.5 MB/s。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;修复&lt;/strong&gt;：新增 &lt;code&gt;init.d&lt;/code&gt; 脚本把 3 个仓库换阿里云镜像（只影响本机，不污染团队项目）。验证 &lt;code&gt;BUILD SUCCESSFUL&lt;/code&gt;。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;坑&lt;/strong&gt;：换源后报 &lt;code&gt;Could not find xxx.klib&lt;/code&gt;——镜像文件其实是全的（md5 一致），真因是之前超时留下的半截缓存（pom / module 下了，klib 没下）。解决：删 metadata + 坏 artifact 目录，保留 1.1 GB 有效文件，&lt;strong&gt;不要用 &lt;code&gt;--refresh-dependencies&lt;/code&gt; 或整个删 caches&lt;/strong&gt;。&lt;/p&gt;</description></item></channel></rss>