I can't find the solution for the following case:
I try to add a dependency to my project for one of my libraries I've been working on for some days. I'm doing this for some other libs via: https://jitpack.io/
But ever since I've been adding some of the Support-Annotations in my code, for example:
@Override
public void onDrawOver(
@NonNull final Canvas canvas,
@NonNull final RecyclerView parent,
@NonNull final RecyclerView.State state
) {
...
}
the jitpack.io won't build the repository anymore. Some errors I get are:
/home/jitpack/build/lib/src/main/java/com/my/package/widget/recyclerview/decoration/MyClass.java:54: error: cannot find symbol
public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) {
^
symbol: class RecyclerView
location: class DividerDecoration
/home/jitpack/build/lib/src/main/java/ca/barrenechea/widget/recyclerview/decoration/DividerDecoration.java:54: error: package RecyclerView does not exist
public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) {
^
javadoc: warning - Class NonNull not found.
javadoc: warning - Class NonNull not found.
javadoc: warning - Class Nullable not found.
javadoc: warning - Class Nullable not found.
javadoc: warning - Class Nullable not found.
javadoc: warning - Class Nullable not found.
javadoc: warning - Class NonNull not found.
javadoc: warning - Class NonNull not found.
There are a lot more of these errors pointing to the annotations in my code.
Last but not least, there is this error in the log file:
1 error
100 warnings
:lib:androidJavadocs FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':lib:androidJavadocs'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/home/jitpack/build/lib/build/tmp/androidJavadocs/javadoc.options'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I'm trying to find a solution for that problem for a while now but nothing worked so far. Any help will save my day! Thanks!