在我的Android应用程序在7.1 Nougat上运行时,我遇到以下错误:
E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)[ 04-21 10:19:18.788 4410: 4622 D/ ]
HostConnection::get() New Host Connection established 0x7db835ad6200, tid 4622
在build.gradle
中,我正在使用vectorDrawables.useSupportLibrary = true
以及以下依赖项:
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')
}
在 build types 中我有:
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
对于项目的build.gradle
文件,我的设置如下:
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'
}
在我的用户界面中,我正在使用ImageView,位于另一个ImageView的顶部。这个问题在AVD和真实设备上都出现了。
- 有人遇到过这个问题吗?
- 是什么原因导致了这个错误?
- 有什么解决方案吗?