Warm tip: This article is reproduced from serverfault.com, please click

No reference documentation in Android Studio

发布于 2018-08-23 15:17:00

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.

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?

Questioner
j3App
Viewed
0
989 2020-09-15 19:56:45

Note: as of AS 3.6.2 (or, maybe, even earlier) this is irrelevant and does not answer the question.

Answer for older Android Studio versions:

You Must Download Documentation for Android SDK from SDK Manager

screenshot