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?
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
This doesn't seem to be an option for me in Android Studio 3.6.2
How do you do this in 4.0?
It seems that once again the good people at Google have changed things making this answer no longer useful. Any fixes to Google's "fix"?
seems broken to me also - using Android Studio 4.0 here
there is no such checkbox anymore stackoverflow.com/questions/63409366/…