title: How to get rid of "Call requires API level 26 (current min is 24)"?
body: <p>How can I tell <code>Android Studio (3.0.1)</code> not to display <code>API 26</code> functions in the IntelliSense? It's quite misleading. 
  Why does it propose those functions if I cannot use them?</p>
  
  <p>Example: if I use the <code>java.util.Date</code>, it tells me:</p>
  
  <blockquote>
    <p>'Date(int, int, int)' is deprecated as of <code>API 16</code>: <code>Android 4.1 (Jelly Bean)</code></p>
  </blockquote>
  
  <p>And if I use <code>java.time.Localtime</code>, I get:</p>
  
  <blockquote>
    <p>Requires <code>API level 26</code> (current min is <code>API 24</code>)</p>
  </blockquote>
  
  <p>Is my <code>gradle</code> correct? I want the app to run on <code>Android 7.0</code> max.</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      defaultConfig {
          applicationId "xxx.xxx.xxx"
          minSdkVersion 24
          targetSdkVersion 24
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
  dependencies {
      implementation fileTree(include: ['*.jar'], dir: 'libs')
      implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
      implementation 'com.android.support:appcompat-v7:26.1.0'
      implementation 'com.android.support.constraint:constraint-layout:1.0.2'
      implementation 'com.android.support:design:26.1.0'
      implementation 'com.android.support:support-v4:26.1.0'
      implementation 'io.paperdb:paperdb:2.6'
      implementation 'com.github.yukuku:ambilwarna:2.0.1'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.1'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  }
  </code></pre>
  
  <p>Thank you!</p>