Directly use version code numbers for TargetApi annotations
The introduction of TargetApi annotations in 6d14e4094bd91a2 breaks the build on ROMs that are based on Marshmallow and older Android versions.
Replacing Build.VERSION_CODES.N
with the version code number may not be the best solution, but it works.