You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Studio首次安装卡在下载fastutil-7.2.0.jar求助

Fix for Stuck fastutil-7.2.0.jar Download During Android Studio Setup

Hey there! Sorry to hear you're stuck on downloading fastutil-7.2.0.jar during your first Android Studio setup—super frustrating when you're excited to dive in. Let's go through some practical fixes that usually get past this issue:

1. Manually Download and Replace the Jar File

  • First, locate your Gradle cache directory:
    • On Windows: C:\Users\[Your Username]\.gradle\caches\modules-2\files-2.1\it.unimi.dsi\fastutil\7.2.0
    • On macOS/Linux: ~/.gradle/caches/modules-2/files-2.1/it.unimi.dsi/fastutil/7.2.0
  • Delete any incomplete or corrupted files in this folder (if there are any).
  • Search for "fastutil 7.2.0 jar" and download the official jar file from a reliable Maven repository.
  • Place the downloaded jar into the directory you found earlier, then restart Android Studio and retry the setup.

2. Switch to Domestic Gradle Mirrors

Gradle's default repositories can be slow in some regions. Try adding faster mirrors to your build config:

  • Open your project's root build.gradle file.
  • Find the repositories block and add these mirrors before the default google() and mavenCentral() entries:
    maven { url 'https://maven.aliyun.com/repository/public' }
    maven { url 'https://maven.aliyun.com/repository/google' }
    
  • Click the "Sync Now" button in the toolbar and let Gradle try downloading dependencies again.

3. Clear Gradle's Cache

Corrupted cache files might be causing the hang. Let's wipe them:

  • Close Android Studio completely.
  • Navigate to the .gradle/caches folder (locations listed in step 1) and delete the modules-2 subfolder (or the entire caches folder if you want a full reset).
  • Reopen Android Studio—it will rebuild the cache from scratch, which often bypasses stuck downloads.

4. Double-Check Proxy Settings

Sometimes unintended proxy settings block downloads:

  • Go to File > Settings > Appearance & Behavior > System Settings > HTTP Proxy.
  • Switch to the "No proxy" option if you aren't using a work/school proxy.
  • Click "Check connection" to verify Android Studio can reach external repositories.

If none of these work, consider downloading the full offline Android Studio installer (which includes most common dependencies) instead of the lightweight version—this skips the need to download components during setup.

内容的提问来源于stack exchange,提问作者Asep Kurnia X

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.07 11:58:14