Search code examples
javaandroid-studiojavadoc

Android Studio Generate JavaDoc errors


I am attempting to generate a JavaDoc for my project. To do so, I use Tools > Generate JavaDoc. I check Whole Project and set the output directory. It starts to work then returns with

error: package android.content does not exist
import android.content.Context;

Along with a bunch of other package does not exist errors and

cannot access ViewGroup
public class MainMenu extends AppCompatActivity {
       ^
  class file for android.view.ViewGroup not found

Thus far I haven't been able to find any sort of solution. My project builds and runs fine on both the emulator and actual devices. Any thoughts? Thanks!


Solution

  • I was able to find a work around. I loaded my project in intelliJ IDEA, and while it still showed those errors, it still was able to generate the javadoc that correctly contains all the classes and methods needed.