今天点开了TextView想看一下他的源码,万万没想到坑来了
公司的网络非常好,我直接用studio下载了23的源码,完成之后就报错了
不管你点什么就是不管用
在网上找了半天,终于。。。原来是这样,还是不太懂
解决方法是:
在你C盘 用户 目录下 找到你的Android studio
然后点进去搜索一个叫(jdk.table.xml)的文件
找到以后打开它,你会看见里面是这样的,你有多少源码文件就有多少这个
<jdk version="2">
<name value="Android API 23 Platform" />
<type value="Android SDK" />
<homePath value="C:\Users\Administrator\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="http://developer.android.com/reference/" />
</root>
</javadocPath>
<sourcePath>
<root type="composite">
<root type="simple" url="file://C:/Users/Administrator/AppData/Local/Android/Sdk/sources/android-23" />
</root>
</sourcePath>
</roots>
<additional jdk="1.7" sdk="android-23" />
</jdk>
找到你报错对应的源码添加,源码路径,重启Android studio 就行了
<sourcePath>
<root type="composite">
<root type="simple" url="file://C:/Users/Administrator/AppData/Local/Android/Sdk/sources/android-23" />
</root>
</sourcePath>