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

Android Studio构建报错:找不到Build Tools 26.1.0且安装包不可用

Fixing "Failed to find Build Tools revision 26.1.0" with "Package Unavailable" Error

Hey, I’ve dealt with this exact headache before—nothing’s more annoying than clicking that install link only to hit a dead end. Let’s work through the solutions that actually get your project syncing again:

1. Switch to a compatible, available Build Tools version

Google often removes older, less stable Build Tools revisions from their official repositories, which is why 26.1.0 is showing up as unavailable. Instead, use a stable, still-hosted version from the same 26.x series.

Open your app-level build.gradle file and update the buildToolsVersion line to a working alternative like 26.0.3:

apply plugin: 'com.android.application'
android {
    compileSdkVersion 26
    buildToolsVersion "26.0.3" // Replace 26.1.0 with this valid version
    lintOptions {
        abortOnError false
    }
    // Rest of your configuration...
}

Sync your project after making this change—it should pick up the valid version immediately.

2. Let Android Studio auto-select the right version

Even better, you can just remove the buildToolsVersion line entirely. Android Studio will automatically choose the most compatible Build Tools version that matches your compileSdkVersion (26 in your case). This avoids manual version hunting and keeps your config cleaner.

Your simplified config would look like:

apply plugin: 'com.android.application'
android {
    compileSdkVersion 26
    lintOptions {
        abortOnError false
    }
    // Rest of your configuration...
}

3. Manually install the available version via SDK Manager

If you want to stick with a specific 26.x version, you can install it directly through Android Studio’s SDK Manager:

  • Go to Tools > SDK Manager
  • Switch to the SDK Tools tab
  • Check the box for Show Package Details at the bottom right
  • Expand the Android SDK Build Tools section
  • Look for and select a 26.x version that’s marked as available (like 26.0.3)
  • Click Apply to install, then sync your project once the installation finishes

4. Check your SDK repository settings (if all else fails)

Sometimes network issues or misconfigured repositories prevent Android Studio from finding the packages. Double-check:

  • Go to SDK Manager > SDK Update Sites
  • Make sure the Android Repository and Google Repository are enabled
  • If you’re in a region with restricted access, consider adding a reliable, well-known mirror (stick to trusted sources to avoid security risks)

After trying any of these steps, your project should sync without the Build Tools error.

内容的提问来源于stack exchange,提问作者Sam Wilson

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.25 06:45:45