7

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

user924
  • 8,146
  • 7
  • 57
  • 139

3 Answers3

10

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

Reza M.
  • 1,205
  • 14
  • 33
2

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

Micha
  • 396
  • 2
  • 8
1

Faced the same issue. Clearing cache doesn't seem to the trick.

The thing here is - Sources for Android 30 is not yet available in SDK Manager. So we need to use android 29 at least for development environment to see the documentation. Go through the following steps :

  1. Download Sources for Android 29

  2. Update the following properties in app/build.gradle file :

    compileSdkVersion 29

    buildToolsVersion "29.0.2"

    targetSdkVersion 29

priojeet priyom
  • 899
  • 9
  • 17