android E/libEGL:验证显示:99错误3008(EGL_BAD_DISPLAY)安卓操作系统7.1牛轧糖

iyfjxgzm  于 2023-02-20  发布在  Android
关注(0)|答案(1)|浏览(558)

我在Android OS 7.1牛轧糖上运行我的应用程序时遇到以下错误。
E/libEGL:验证显示:99错误3008(EGL错误显示)[04 - 21 10:19:18.788 4410:小行星4622
主机连接::get()已建立新的主机连接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')
}

在构建类型中,我有:

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和real设备上。

  • 以前有人遇到过这个问题吗?
  • 发生此错误的原因是什么?
  • 解决这个问题的办法是什么?
pxyaymoc

pxyaymoc1#

这是ChatGPT对您的问题的回答,它可能是错误的:

The error you are seeing, "EGL_BAD_DISPLAY," is related to the graphics rendering subsystem on Android. This error occurs when the display connection is not valid. This can happen if there is a problem with the graphics driver, the device hardware, or the Android OS itself.

One possible cause of this error is the use of the vectorDrawables.useSupportLibrary property in your build.gradle file. This property enables the use of vector drawables on older Android versions, but it can cause compatibility issues on newer versions of Android.

To solve this issue, you can try removing the vectorDrawables.useSupportLibrary property from your build.gradle file and see if the error still occurs. If it does, you can try the following solutions:

Check the graphics driver on your device: Make sure that the graphics driver on your device is up to date. You can do this by checking the device manufacturer's website for the latest driver updates.

Update your Android OS: If your device is not running the latest version of Android, you may want to consider updating it. Newer versions of Android often include bug fixes and improvements to the graphics subsystem.

Disable hardware acceleration: You can try disabling hardware acceleration in your app by adding the following line to your AndroidManifest.xml file:

<application android:hardwareAccelerated="false">
Disabling hardware acceleration can be a workaround for graphics rendering issues, but it can also impact performance.

Use a different image rendering library: If none of the above solutions work, you can try using a different image rendering library in your app, such as Glide or Picasso.

I hope this helps you resolve the issue you are facing.


Regenerate response

相关问题