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

Android Studio中sources-27_r01.zip文件应放置在哪个目录?

Fixing the Placement Path for sources-27_r01.zip in Android Studio

Got it, let's sort out this source file placement issue for you—here's exactly what you need to do:

  • First, unzip the file: Don’t drop the zip directly into the folder. Extract sources-27_r01.zip and you’ll get a folder named android-27 (this matches the API level 27 the sources are for).
  • Target directory: Move the extracted android-27 folder into this exact path:
    C:\Users\<YourUsername>\AppData\Local\Android\Sdk\sources\
    
    Your final structure should look like:
    C:\Users\<YourUsername>\AppData\Local\Android\Sdk\sources\android-27\(all source files inside)
    

If you previously renamed the folder, make sure it’s strictly android-27—Android Studio looks for this exact folder name to map API 27 sources.

Once it’s in place, restart Android Studio. You can verify it works by opening an API 27 class (like AppCompatActivity) and pressing F12 to jump to the source code—if it loads without an error, you’re set.

If it still doesn’t recognize the sources, try clearing Studio’s cache:

  • Go to File > Invalidate Caches... > Invalidate and Restart
  • This forces Studio to re-scan your SDK directories and pick up the newly added files.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.28 03:58:00