'Android API 32 Sources not Found

I am currently using Android Studio Arctic Fox and was trying to dig into the source code of several key Java classes in the Android API 32, however, it states that there are no packages found to download. Is the source for Android API 32 not available yet or is there a few steps I can take to get Android Studio to be able to look at the Java source code?



Solution 1:[1]

As per documentation they didn't publish 32 yet. Check this -
https://developer.android.com/studio/releases/platforms

enter image description here

Solution 2:[2]

32 is now published!

Old Solution

  1. Open the app build.gradle
  2. Change compileSdk to 31
  3. Change targetSdk to 31

enter image description here

Go to the desired source and click the download button at the top (warning message).

enter image description here

Close the tab and open the source again.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Al-Amin
Solution 2 modsfabio