昨天刚出现一个新问题。当我将鼠标悬停在某个方法上或按Ctrl-Q时,我曾经获取该特定方法的文档信息。
但是现在我得到了(在上按Ctrl-Q 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上搜索了很多,但找不到答案。我需要添加哪些路径以及在哪里?
注意:从AS 3.6.2(或更早,甚至更早)开始,这是无关紧要的,并且不能回答问题。
适用于旧版Android Studio的答案:
你必须从SDK Manager下载Android SDK的文档
在Android Studio 3.6.2中,这似乎不是我的选择
您如何在4.0中做到这一点?
Google的好人似乎再次改变了看法,使此答案不再有用。Google的“修复程序”有任何修复程序吗?
对我来说似乎也很糟糕-在这里使用Android Studio 4.0
没有这样的复选框了stackoverflow.com/questions/63409366/…