Android Studio首次安装卡在下载fastutil-7.2.0.jar求助
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
- On Windows:
- 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.gradlefile. - Find the
repositoriesblock and add these mirrors before the defaultgoogle()andmavenCentral()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/cachesfolder (locations listed in step 1) and delete themodules-2subfolder (or the entirecachesfolder 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

