Closed RiccardoM closed 7 years ago
@SaeedMasoumi I checked for the error, and it looks like the problem is inside the ObservableUseCase<Q, R>
class, specifically on line 36 and 41, when using the @ParametersAreNullableByDefault
annotation.
It looks like this annotation is no more supported, and so can't be found, making impossibile for the application to build nor make.
@RiccardoM @ParametersAreNullableByDefault
annotation is a part of jsr305 , Did you have com.google.code.findbugs:jsr305
library inside your dependencies? (also @ParametersAreNullableByDefault
is not available in old versions of findbugs)
Also I write a test for ObservableUseCase
, take a look at build.gradle
and IsNumberOdd
class in easymvp-test module.
@RiccardoM Also try to add
android{
....
}
configurations.all {
resolutionStrategy {
force 'com.google.code.findbugs:jsr305:1.3.9', 'com.google.code.findbugs:jsr305:2.0.1'
}
}
In your build.gradle
, it will force to use the latest version of findbugs
I've tried to create the following presenter:
With
java GetRandomContactUseCase
being:When I try to compile this, i get the following error:
Using the following UseCase, which does not extend
ObservableUseCase
, however, I don't get any error:I think that this is due to
ObservableUseCase
having no default constructor, or no constructor marked as@Inject
. Is there a way you can fix this issue, maybe creating a plugin which has all classes with a constructor marked with@Inject
if that is the error, or having an empty constructor?