title: Android Version Check Issue (deprecated)
body: <p>Recently I updated an app to use Notification Channel to display notifications on Oreo as Oreo requires Notification Channel, that works fine but Notification Channels are not supported by older android versions hence I am trying to perform a check to see if you is running on Oreo then use create notification channel function. The problem is when I use the following to check </p>
  
  <pre><code>Build.VERSION_CODES.O
  </code></pre>
  
  <p>it says it is deprecated? Every old post on internet is referring to Build.VERSION_CODES.O but it is deprecated. </p>
  
  <p>Is there a a way to check this? What should I do? </p>