Android Studio 中没有参考文档 [英] No reference documentation in Android Studio
问题描述
昨天刚出现一个新问题.当我将鼠标悬停在某个方法上或按 Ctrl-Q 时,我曾经获取过该特定方法的文档信息.
A new problem just popped up yesterday. When I hover over a method or press Ctrl-Q, I used to get documentation info for that particular method.
但现在我得到了(在 SharedPreferences.getLong()
上按 Ctrl-Q):
But now I just get (pressing Ctrl-Q on SharedPreferences.getLong()
):
Following external urls were checked:
http://developer.android.com/reference/android/content/SharedPreferences.html#getLong-java.lang.String-long-
http://developer.android.com/reference/android/content/SharedPreferences.html#getLong(java.lang.String, long)
The documentation for this element is not found. Please add all the needed paths to API docs in Project Settings.
android.content.SharedPreferences
public abstract long getLong(String s, long l)
我用谷歌搜索了很多,但找不到答案.我需要添加哪些路径以及在哪里?
I googled a lot, but couldn't find an answer. Which paths do I need to add and where?
推荐答案
注意:从 AS 3.6.2(或者,也许,甚至更早)开始,这无关紧要,也没有回答问题.
Note: as of AS 3.6.2 (or, maybe, even earlier) this is irrelevant and does not answer the question.
对旧版 Android Studio 的回答:
您必须从 SDK Manager 下载 Android SDK 文档
You Must Download Documentation for Android SDK from SDK Manager
这篇关于Android Studio 中没有参考文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!