Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No documentation in Android Studio 4.0.1 (Linux Mint)

I don't get any description. I've reinstalled Android Studio, deleted whole android profile and cache but still it did't help.

enter image description here

enter image description here

enter image description here

like image 234
user924 Avatar asked Aug 14 '20 08:08

user924


2 Answers

Edit1 - Note: When new API's are released, the documentation is not always released with it. You need to check their update log to determine that.


Install the Sources of the API you are using. The documentation will show up afterwards.

Steps:

  1. Tools -> SDK Manager
  2. Check "Show Package Details"
  3. Check the required API Source
  4. Wait for indexing to be finished.

enter image description here

like image 147
Reza M. Avatar answered Sep 28 '22 09:09

Reza M.


When I faced this issue it was because the compileSdkVersion set in app build.gradle was only installed partially according to the SDK manager.

Installing the SDK for the compileSdkVersion fully fixed the documentation issue on Mac OS AS 4.0.1. This is accomplished by simply checking the checkbox.

To illustrate, on this image the documentation would work with compileSdkVersion set to 26 or 29, but not when set to 28 or 30.

enter image description here

like image 45
Micha Avatar answered Sep 28 '22 09:09

Micha