No reference documentation in Android Studio

▼魔方 西西 提交于 2019-12-22 02:06:09

问题


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?


回答1:


You Must Download Documentation for Android SDK from SDK Manager



来源:https://stackoverflow.com/questions/51989093/no-reference-documentation-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!