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

3 Answers 3

9

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

4
  • The source for API 30 is not on the list. Any suggestions? Aug 30, 2020 at 9:06
  • 1
    @priojeetpriyom, API 30 is still in preview. I doubt they will dedicate time to create a documentation while any part can be changed or dropped.
    – Reza M.
    Aug 31, 2020 at 14:40
  • @RezaM. though there is no Preview suffix, it seems like it's stable
    – user924
    Sep 1, 2020 at 16:59
  • 1
    @RezaM. but it seems we can use 30 API and enable documentation by checking sources of 29 API
    – user924
    Sep 1, 2020 at 17:01
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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.