title: GetSlotFromBufferLocked error occurred
body: <p>The error getslotfrombufferlocked has occurred during the running of the app using Marshmallow 6.0. And I want to run my app on Marshmallow 6.0.Please guide me the way.</p>
  
  <p>The build.gradle file is given below:</p>
  
  <p>apply plugin: 'com.android.application'</p>
  
  <pre><code>    android {
          compileSdkVersion 23
          buildToolsVersion "23.0.3"
           useLibrary 'org.apache.http.legacy'
          defaultConfig {
              applicationId "com.project.myproject"
              minSdkVersion 8
              targetSdkVersion 23
              versionCode 1
              versionName "1.0"
          }
          buildTypes {
              release {
                  minifyEnabled false
                  proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
              }
          }
          packagingOptions{
              exclude 'META-INF/DEPENDENCIES'
              exclude 'META-INF/NOTICE'
              exclude 'META-INF/LICENSE'
              exclude 'META-INF/LICENSE.txt'
              exclude 'META-INF/NOTICE.txt'
          }
  
      }
  
      dependencies {
          compile fileTree(include: ['*.jar'], dir: 'libs')
          compile 'com.android.support:appcompat-v7:23.3.0'
          compile 'com.android.support:design:23.1.1'
          compile files('libs/httpclient-4.4.1.jar')
          compile files('libs/httpcore-4.4.1.jar')
      }
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>07-17 20:02:42.490 1457-4496/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7fa11a5b20
  07-17 20:02:45.282 21549-21586/com.project.myproject E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f8cc5a1a0
  07-17 20:02:46.995 21549-21586/com.project.myproject E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f8cc5a240
  07-17 20:02:54.920 21549-21586/com.project.myproject E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f8cc56d20
  07-17 20:03:01.793 1457-4496/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f8796a780
  </code></pre>