title: E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY) android os 7.1 nougat
body: <p>I am getting the following error while running my app on Android OS 7.1 Nougat. </p>
  
  <blockquote>
    <p>E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)[ 04-21
    10:19:18.788  4410: 4622 D/         ]<br>
    HostConnection::get() New Host Connection established 0x7db835ad6200,
    tid 4622</p>
  </blockquote>
  
  <p>In <code>build.gradle</code> I am using <code>vectorDrawables.useSupportLibrary = true</code> and the following dependencies:</p>
  
  <pre><code>dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
      exclude group: 'com.android.support',
      module: 'support-annotations'
    }) 
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
    compile 'com.google.android.gms:play-services-location:11.6.0'
    compile 'com.google.android.gms:play-services-places:11.6.0'
    compile project(':library')
  }
  </code></pre>
  
  <p>At the build types I have:</p>
  
  <pre><code>buildTypes {
    release {
      minifyEnabled true 
      shrinkResources true 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
  }
  </code></pre>
  
  <p>For the project <code>build.gradle</code> I have:</p>
  
  <pre><code>dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
    // NOTE: Do not place your application dependencies here; they belong 
    // in the individual module build.gradle files 
    classpath 'com.google.gms:google-services:3.1.1'
  }
  </code></pre>
  
  <p>In my UI, I am using imageview, ontop of another imageview. The problem appears both on AVD and Real device.</p>
  
  <ul>
  <li>Has anyone faced this issue before? </li>
  <li>What causes this error to occur? </li>
  <li>What is the solution for this?</li>
  </ul>