How do I get rid of the Select External Root Document dialog?

When I select the "View external documentation" button (up arrow) in the pop-up documentation window for Android Studio, instead of just leading me to the corresponding documentation on Android, instead it will show me a choice of two links that are identical except that in at the end of the fragment, it has a dash instead of parentheses. A hyphen alone does not work, but parentheses.

For example: http://developer.android.com/reference/java/lang/String.html#format-java.lang.String-java.lang.Object...- http://developer.android.com/reference /java/lang/String.html#format%28java.lang.String,%20java.lang.Object...%29

I would like to know where it came from and how I can get away.

(edit: as suggested, here is a list of all the documentation and source packages that I installed through the SDK Manager:

Sources for the Android SDK for API 21 rev 1 and API 14 rev 1.

I have no documentation packages.)

(edit: Removing two source packages does not fix the problem.)

Here (I think) where the dialog box is defined in the code for Android Studio: https://android.googlesource.com/platform/tools/idea/+/f88d3e15cd8228cba4070811da68d8ad54d81fd7/platform/lang-impl/src/com/intellij/ide/ actions / ExternalJavaDocAction.java

(edit: This does not happen anymore (at least for me), instead it downloads a local copy of the documentation, for example the file: ///Users/jesse.w/adt-bundle-mac-x86_64-20140702/sdk/docs/reference /android/app/Service.html # onStartCommand% 28android.content.Intent,% 20int,% 20int% 29). I do not know why.)

+5
source share
1 answer

Update 2017-03-03: fixed in Android Studio 2.3 (build February 24, 2017)

Old information: I also had this small but annoying problem in Android Studio 2.1.2 and Intellij Idea 2016.1, as well as for previous versions on my Mac:

enter image description here

Interestingly, this only happens to find a method. For classes, it works correctly and immediately displays external documentation without prompts. That is, in the screenshot above there is an invitation with an additional link when calling an external document for the SetAction method, but everything is fine when the documentation is displayed for the Intent class

I contacted Jetbrains technical support and they confirmed this error. The guys at JetBrains are really awesome - it took about one day and they suggested I use the fixed version! Many thanks to the JetBrains team. A fixed version of EAP 162.917.19 can be downloaded here for preview:

IDEA 2016.2 EAP

This version of Intellij Idea creates the right links for everything. I hope that the fix will eventually be available in Android Studio.

+1
source

Source: https://habr.com/ru/post/1210697/


All Articles