问题:
AS提示: Decompiled .class file, bytecode version: Souces for android api 23(xx) platform not found
分析: 原来是AS的默认配置有问题
解决:找到jdk.table.xml这个文件,在节点下添加这一句(将源码的路径添加)
<root type="simple"url="file://D:/android/sdk/sources/android-23" />
修改后的部分配置文件如下:
<jdk version="2">
<name value="Android API 23 Platform" />
<type value="Android SDK" />
<homePath value="D:\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://D:/Android/sdk/platforms/android-23/android.jar!/" />
<root type="simple" url="file://D:/Android/sdk/platforms/android-23/data/res" />
</root>
</classPath>
<javadocPath>
<root type="composite">
<root type="simple" url="file://D:/Android/sdk/docs/reference" />
</root>
</javadocPath>
<sourcePath>
<root type="composite">
<root type="simple" url="file://D:/Android/sdk/sources/android-23" />
</root>
</sourcePath>
</roots>
<additional jdk="1.7" sdk="android-23" />
</jdk>