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.zipand you’ll get a folder namedandroid-27(this matches the API level 27 the sources are for). - Target directory: Move the extracted
android-27folder into this exact path:
Your final structure should look like:C:\Users\<YourUsername>\AppData\Local\Android\Sdk\sources\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
相关产品推荐
相关产品推荐

