AndroidStudio 中 ctrl + 左鍵 進入源碼看不到詳細代碼

在AndroidStudio 中 ctrl + 左鍵 進入源碼看不到詳細代碼

解決方法

  1. 找到 jdk.table.xml

    • 位置 : C:\Users\當前用戶名.AndroidStudio2.1\config\options\jdk.table.xml
  2. 找到對應的

     <name value="Android API 23 Platform" />
    

    修改這個sourcePath結點

      <sourcePath>
        <root type="composite" />
      </sourcePath>
    

          <jdk version="2">
                <name value="Android API 23 Platform" />
                <type value="Android SDK" />
                <homePath value="D:\Coding\sdk\Android_SDK\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:/Coding/sdk/Android_SDK/sdk/platforms/android-23/android.jar!/" />
                      <root type="simple" url="file://D:/Coding/sdk/Android_SDK/sdk/platforms/android-23/data/res" />
                    </root>
                  </classPath>
                  <javadocPath>
                    <root type="composite">
                      <root type="simple" url="file://D:/Coding/sdk/Android_SDK/sdk/docs/reference" />
                    </root>
                  </javadocPath>
                  <sourcePath>
                    <root type="composite" />
                  </sourcePath>
                </roots>
                <additional jdk="1.8" sdk="android-23" />
              </jdk>
    
<sourcePath>
  <root type="composite" >
    <root type="simple" url="file://D:/Coding/sdk/Android_SDK/sdk/sources/android-23" />
  </root>
</sourcePath>

重啓AndroidStudio後即可

如果修改不成功 注意 </root>

<root type="composite" >
  <root type="simple" url="file://D:/Coding/sdk/Android_SDK/sdk/sources/android-23" />
</root>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章