My minSdk is 19 and my targetSdk is 27 I am trying to use JobScheduler for BOOT_COMPLETED for Build.Version >= 21 devices and traditional method for pre-lollipop devices. But I am getting calls require 21 current minSdk is 19.
What annotations do I need to use, I tried TargetApi(21) but it ONLY targets lollipop and not higher.