问题说明:
关联源码失败即ctrl + 左键点击去进入到的不是源码,是.class的反编译文件
没有方法提示(quick doc),已经有了document,但是还是一直fetching documentation
解决:
首先必须要下载源码和document,并且在project setting中设置成对应的sdk版本
其次是找到jdk.table.xml配置文件
Windows file location: C:\Users{USER_NAME}.AndroidStudio2.0\config\options\jdk.table.xml
Linix file location: ~/Library/Preferences/AndroidStudioBeta/options/jdk.table.xml
然后修改jdk.table.xml
<jdk version="2">
<name value="Android API 23 Platform" /> <!-- 在这里根据对应的name找 -->
<type value="Android SDK" />
<homePath value="C:\Users\MrSeng\AppData\Local\Android\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://$USER_HOME$/AppData/Local/Android/Sdk/platforms/android-23/android.jar!/" />
<root type="simple" url="file://$USER_HOME$/AppData/Local/Android/Sdk/platforms/android-23/data/res" />
</root>
</classPath>
<javadocPath>
<root type="composite">
<root type="simple" url="C:/MyApplications/SDK/docs/reference/" /> <!--默认是android官网,直接修改为本地路径即可-->
</root>
</javadocPath>
<sourcePath>
<root type="composite" >
<root type="simple" url="file://C:/MyApplications/SDK/sources/android-23" /> <!-- 关联本地源码 -->
</root>
</sourcePath>
</roots>
<additional jdk="1.8" sdk="android-23" />
</jdk>
参考:http://www.cnblogs.com/permanent2012moira/p/5447419.html
参考:http://my.oschina.net/zhangdengjiexuyu/blog/388469