No documentation in Android Studio 4.0.1 (Linux Mint)
Asked Answered
P

3

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

Photoperiod answered 14/8, 2020 at 8:38 Comment(0)
T
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

Terra answered 26/8, 2020 at 19:10 Comment(4)
The source for API 30 is not on the list. Any suggestions?Epidiascope
@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.Terra
@RezaM. though there is no Preview suffix, it seems like it's stablePhotoperiod
@RezaM. but it seems we can use 30 API and enable documentation by checking sources of 29 APIPhotoperiod
K
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

Kekkonen answered 14/10, 2020 at 10:0 Comment(0)
E
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

Epidiascope answered 30/8, 2020 at 9:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.