dequeueBuffer:无需设置缓冲区即可将多个缓冲区出列 - android

时间:2016-11-06 05:13:18

标签: android android-studio

当我想在一些拥有4.4.2或4.4.4安卓版的智能手机上运行我的应用时出现此错误:

/BufferQueue: [com.huawei.android.launcher/com.huawei.android.launcher.Launcher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

我的gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '24.0.0'

    defaultConfig {
        applicationId "*.*.*"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        jackOptions {
            enabled true
        }
        // Enabling multidex support.
        multiDexEnabled true
    }
    buildTypes {
        release {
            debuggable false
            minifyEnabled false
            shrinkResources false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    dexOptions {
        javaMaxHeapSize "2g"
        incremental true
        preDexLibraries = false
    }
}
repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url 'https://raw.github.com/felipecsl/m2repository/master' }
   // maven { url "https://jitpack.io" }
    mavenCentral()

}
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile('com.github.florent37:materialviewpager:1.2.0@aar') {
        transitive = true
    }
  // my libraries...
}

1 个答案:

答案 0 :(得分:0)

这是Google Play版本的错误。您可以尝试在Android清单中禁用硬件加速以消除此错误。