Tip: How to attach JavaDoc to the library in Android Studio

For a while, I had an issue when I couldn’t see JavaDoc for rxJava. Strange thing, that issue is not reproducible on a new project. Anyway, Android Studio (IntelliJ) allows attaching a JavaDoc link. Here is what you have to do.

Switch to “Project” view

switch from “Android” view to “Project” view

Find desired library (rxJava in my case), right click , invoke “Library Properties”

Library properties

Select “Specify Documentation URL” button

Specify Documentation URL

Add link to JavaDoc. In case of rxJava 2.x it’s http://reactivex.io/RxJava/2.x/javadoc/

Enter document URL

That’s it!

Documentation for Observable.just