Compilation failed; While building the gradle build for my android project

DicomInputStream dicomInputStream = new DicomInputStream(is);
^
class file for javax.imageio.stream.ImageInputStream not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:SS_Tablet:compileDebugJava’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.