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

Windows10 x64安装Android SDK命令行工具25.2.3提示Java未找到求助

Troubleshooting Android SDK Command-Line Tools 25.2.3 Installation on Windows 10 x64

Hey there, let's tackle this installation issue together. Since you're working with the command-line version (no GUI wizard), we'll focus on environment variable checks and command-line-specific fixes. Here's what to try:

1. Verify Java Version Compatibility First

Android SDK 25.2.3 requires Java 8 (either Oracle JDK or OpenJDK 1.8.x). Newer Java versions (9+) aren't compatible with this older SDK release.

  • Open a command prompt and run these commands to check your current Java version:
    java -version
    javac -version
    
  • Both should output something like 1.8.0_XXX. If you have a newer version installed, you'll need to install Java 8 and adjust your environment variables to point to it.

2. Double-Check Your Java Environment Variables

Even if you set JAVA_HOME and JRE_HOME, small misconfigurations can break things:

  • JAVA_HOME must point to the root directory of your JDK 8, not the bin folder. For example:
    C:\Program Files\Java\jdk1.8.0_291 (not C:\Program Files\Java\jdk1.8.0_291\bin)
  • JRE_HOME should point to the root of your JRE 8:
    C:\Program Files\Java\jre1.8.0_291
  • Add both %JAVA_HOME%\bin and %JRE_HOME%\bin to your system Path variable, and move them to the top of the Path list to avoid conflicts with other Java installations.
  • Verify the variables are set correctly by running these commands in a new command prompt:
    echo %JAVA_HOME%
    echo %JRE_HOME%
    
    They should output the exact paths you set.

3. Configure Android SDK Environment Variables & Path

  1. Make sure you've extracted the Android SDK command-line tools (android-sdk_r25.2.3-windows.zip) to a directory without spaces or special characters (e.g., C:\Android\android-sdk instead of C:\Program Files\Android SDK).
  2. Set a new system variable ANDROID_HOME pointing to this extracted root directory:
    C:\Android\android-sdk
  3. Add these two paths to your system Path variable:
    • %ANDROID_HOME%\tools
    • %ANDROID_HOME%\platform-tools
  4. Always open a new command prompt window after modifying environment variables—old windows won't pick up the new settings.

4. Test the Installation

Run this command in the new command prompt to see if the SDK tools work:

android list sdk

If this runs without errors and shows a list of available SDK packages, you're good to go.

Common Fixes for Persistent Issues

  • Permission Problems: Right-click the command prompt and select "Run as administrator"—some SDK operations require elevated privileges.
  • Antivirus Interference: Temporarily disable your antivirus software, as it might block SDK files from being accessed or executed.
  • Corrupted SDK Download: If you still get errors, re-download the android-sdk_r25.2.3-windows.zip file from the official archive to rule out a corrupted download.

If you can share the exact error message from your screenshot, we can narrow this down even further—but these steps should resolve most common command-line installation issues with this SDK version.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.28 07:22:07