Android Studio: android sources kinda broken

On android studio, when i try to understand what a class really does, i like to see the source code.
The problem is that even if i have installed “Sources for the sdk im using” from the sdk manager i get thousands errors in classes, like missing methods or missing classes.

Here is an example while i was trying to understand the startActivity impl:enter image description here

My application compiles and runs perfectly, so its not a huge problem if i dont have android sources.

Answer

The platform sources are there for a reference, not to be compiled. The SDK for app development does not have all the platform building blocks that are there when compiling the Android platform itself.

It’s annoying yes but there’s not really anything you can or need to do.