Studio中没有参考文档

Studio中没有参考文档

本文介绍了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)

我在Google上搜索了很多,但是找不到答案.我需要添加哪些路径以及在哪里?

I googled a lot, but couldn't find an answer.Which paths do I need to add and where?

推荐答案

您必须从SDK Manager下载Android SDK的文档

You Must Download Documentation for Android SDK from SDK Manager

这篇关于Android Studio中没有参考文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 06:41