I am using a @Valid
annotation in a section of my code in Android Studio and it is being marked in red as en error.
After some research I have found that @Valid
belongs to something called JSR-303
.
I would like to know how to add this to my android project, I am having problems to find the compile or the package that needs to be added.
If that helps, the following line is also being marked in red:
import javax.validation.Valid;
Im my build.gradle
I have:
compile 'javax.annotation:javax.annotation-api:1.2'