'Cant run JavaDoc in Android Studio

When I try to run JavaDoc in android studio I am getting several similar errors. 18 in total. One of these I have pasted below. Can someone please help me fix this?

3: error: package android does not exist import android.Manifest;



Sources

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

Source: Stack Overflow

Solution Source