6

In Android Studio editor, the ctrl-q and/or code completion popup to show related documentation does not give documentation on object. I only get a window claiming that URL's have been searched.

the following is the text from a typical popup: (with my notes in parentheses)

java.io.File public String toString()
 Overrides:

toString in class Object
The following documentation urls were checked:  
http://developer.android.com/reference/java/io/File.html#toString--
http://developer.android.com/reference/java/io/File.html#toString()

       Edit API docs paths (<-- acts like link, does nothing)

`toString()` on developer.android.com (<-- is link, goes to ../File)
`toString()` on developer.android.com (<-- is link, goes to ../File.html#toString())

What am I missing? Can I fix this? Setup is api 29

Chuck
  • 161
  • 3
  • Have you installed all appliciable Android SDks? – Ramhound Sep 03 '19 at 19:59
  • 1
    I was kind of under the impression that because I had been building and running my application that the SDks were there. It seams to be looking up api 29 which is installed. I was also under the impression that it was going to the web to find the information so I am not sure how the downloaded SDks make a difference. – Chuck Sep 05 '19 at 21:03
  • could I maybe have the android studio to be looking for local files? – Chuck Sep 05 '19 at 21:04
  • Are you able to manually navigate to the page that is being requested? – Ramhound Sep 05 '19 at 21:16
  • yes, that's what I meant with the (<-- this goes to) statements, I guess that was unclear. I had trouble formatting the layout the way I wanted it and lost my first draft. not used to the way the editor works yet. I thought I had said I can paste them into the browser and get there. – Chuck Sep 05 '19 at 23:21
  • I can actually click on the links in the popup too. I'm just not used to the dearth of information in this window and I am seeing it a lot using api 29 – Chuck Sep 05 '19 at 23:24
  • It does it on apis 29 28 27 even if I have the sdk down loaded. do I need to download documentation? (changed target in .gradle file) Seems like before I had to clear my system and reistall, heck, even last week it was better than just, basically, repeating the completion popup. – Chuck Sep 05 '19 at 23:37
  • I'm using AS 3.5 built aug. 8 , 2019. I went back to older example Droid Café using api 26 and the help that pops up looks the same. like I say, I remember it being more descriptive. – Chuck Sep 05 '19 at 23:54
  • 2
    Seems to be a common problem with new versions of Android Studio. What's the point of "instant" documentation if we have to go to a web page anyway? – SMBiggs Jul 17 '20 at 15:18

1 Answers1

1

Installing the specific sdk versions used by my project (like suggested by Ramhound in the comments) fixed the problem for me.

(Through Tools -> SDK Manager)

Rubberduck
  • 111
  • 2