首先祖搓,確保你已經下載完成了,
然后湖苞,在C:\Users\xxx\.AndroidStudio2.1\config\options
這里找到jdk.table.xml
打開它
<jdk version="2">
<name value="Android API 24 Platform" /> //找到對應的版本
<type value="Android SDK" />
<version value="java version "1.8.0_91"" />
<homePath value="D:\android-studio-sdk" />
<roots>
<annotationsPath>
<root type="composite">
<root type="simple" url="jar://$APPLICATION_HOME_DIR$/plugins/android/lib/androidAnnotations.jar!/" />
</root>
</annotationsPath>
<classPath>
<root type="composite">
<root type="simple" url="jar://D:/android-studio-sdk/platforms/android-24/android.jar!/" />
<root type="simple" url="file://D:/android-studio-sdk/platforms/android-24/data/res" />
</root>
</classPath>
<javadocPath>
<root type="composite">
<root type="simple" url="file://D:/android-studio-sdk/docs/reference" />
</root>
</javadocPath>
<sourcePath> //源碼在這里
<root type="composite">
//把路徑填進去拯欧,重開AndroidStudio就ok了
<root type="simple" url="file://D:/android-studio-sdk/sources/android-24" />
</root>
</sourcePath>
</roots>
<additional jdk="1.8" sdk="android-24" />
</jdk>