修复Android Studio一直 Fetching Documentation...
来源:互联网 发布:用php编写九九乘法表 编辑:程序博客网 时间:2024/04/29 00:23
大家可能都遇到过 Fetching Documentation问题,这其实是一个科学上网问题。
百度后,网上给出的解决方案(比如http://blog.csdn.net/a3630623/article/details/68950824)是把jdk.table.xml文件里的http://developer.android.com/reference/替换为sdk目录下的/docs/reference.不能完全解决问题,有时正常有时会Fetching Documentation(反正我的经常Fetching Documentation)。
那么http://developer.android.com/reference/是什么呢,打开看看(需要科学上网)。
原来跳转到了https://developer.android.com/reference/classes.html。我们之所以一直Fetching Documentation就是因为没有科学上网。
而网上的替换/docs/reference也打开看看,
里面有个index.html,瞬间就明白了原理,再把这个index.html打开看下,发现很慢,而且浏览器一直在提示连接google.com什么的。
其实原理就是访问本地的html页面,但是为什么替换了之后有时正常,有时Fetching Documentation呢?
想到刚才网页打开那么慢,查看下它的html代码发现里面有很多访问google.com的url。怪不得?原因在这里。那有没有替代http://developer.android.com/reference/可以访问的网址呢。答案是有的,看这里http://www.qdaily.com/articles/35398.html。
然后你只需要将http://developer.android.com/reference/替换为https://developer.android.google.cn/reference就行。问题解决啦。
再也没有Fetching Documentation 问题啦。
另外android studio使用中很多网速慢,或无法访问的问题,也可以参照上面的方法替换成google.cn
--------------------------------旧方法---------------------------------
开启鼠标悬停快速文档提示后,Android Studio一直Fetching Documentation...两分钟后,还在。。。
经查,发现这是由于ide联网查询文档,而网络不通畅导致的。并且Android Studio2.2是正常的,是从源代码生成文档提示,出问题的版本为2.3:
修复的方法如下:
打开 当前用户\.AndroidStudio2.3\config\options\jdk.table.xml
看到如下所示:
<javadocPath> <root type="composite"> <root type="simple" url="http://developer.android.com/reference/" /> </root></javadocPath><sourcePath> <root type="composite" url="file://D:/Android/android-sdk/sources/android-25"/></sourcePath>
javadocPath:文档的路径
sourcePath:源码路径
将sorucePath节点下url的值“file://D:/Android/android-sdk/sources/android-25”(这是我自己的sdk路径)复制,替换掉javadocPath的url节点的值。
替换后形如:
<javadocPath> <root type="composite"> <root type="simple" url="file://D:/Android/android-sdk/sources/android-25"/> </root></javadocPath><sourcePath> <root type="composite" url="file://D:/Android/android-sdk/sources/android-25"/></sourcePath>
由于Android API众多,保险起见,每个版本都替换。如果懒惰,也可以只替换当前使用的版本,一般是下载的最后一个版本。
修改完毕,保存,重启Android Studio,问题消失。不在fetching了。
- 修复Android Studio一直 Fetching Documentation...
- 修复Android Studio一直 Fetching Documentation...
- Android Studio 提示帮助文档 一直显示:fetching documentation
- Android Studio 提示帮助文档 一直显示:fetching documentation
- Android Studio一直 Fetching Documentation终极解决方法,绝对有效
- android studio quick documentation,fetching documentation
- 国内用户使用Android Studio 提示帮助文档 一直显示:fetching documentation解决方案
- android studio 鼠标悬浮出现 fetching documentation
- android studio Fetching documentation 函数提示框
- Android Studio :fetching documentation的问题
- Android Studio 代码提示悬浮窗fetching documentation问题解决 记录
- Android Studio 鼠标悬停文档显示fetching documentation的问题
- Android Studio 显示函数用法提示悬浮窗,解决fetching documentation问题
- 在Mac上解决Android Studio 鼠标悬停文档显示fetching documentation的问题
- Android Studio解决fetching documentation问题——悬浮不能显示文档
- Android Studio 显示函数用法提示悬浮窗,解决fetching documentation问题
- Android Studio 显示函数用法提示悬浮窗,解决fetching documentation问题
- mac Android Studio解决fetching documentation问题——悬浮不能显示文档
- [喵咪Redis]Redis配置文件和主从设置
- Spring-Data-Jpa projection用法
- Spring--装配Bean
- JAVA进阶之EL及JSTL
- linux下打包文件夹
- 修复Android Studio一直 Fetching Documentation...
- Coding Time
- PLSQL显示乱码-无法进行中文条件查询解决
- 决策树(Decision Tree)-机器学习ML
- C# SuperSocket服务端入门(一)
- 沙箱机制
- E: Sub-process /usr/bin/dpkg returned an error code (1)
- 光看书, 是学不会工程实践的
- HBase的Row Key设计