2016-12-18 13 views
2

こんにちは私はアンドロイドプログラミングではダミーです。 私は、このXMLコードでアプリケーションを構築しようとした: `E/EGL_emulation:tid 2633:eglSurfaceAttrib(1165):エラー0x3009(EGL_BAD_MATCH)

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:id="@+id/activity_main" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:paddingBottom="@dimen/activity_vertical_margin" 
    android:paddingLeft="@dimen/activity_horizontal_margin" 
    android:paddingRight="@dimen/activity_horizontal_margin" 
    android:paddingTop="@dimen/activity_vertical_margin" 
    tools:context="com.ebookfrenzy.androidsample.MainActivity"> 

    <EditText 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:inputType="textPersonName" 
     android:text="@string/Namestring" 
     android:ems="10" 
     android:layout_above="@+id/button" 
     android:layout_centerHorizontal="true" 
     android:layout_marginBottom="28dp" 
     android:id="@+id/editText" /> 

    <Button 
     android:text="@string/PressMeString" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:id="@+id/button" 
     android:layout_centerVertical="true" 
     android:layout_centerHorizontal="true" 
     android:textAllCaps="false" /> 
</RelativeLayout> 

は、その後、私はADVマシンでこのエラーを得た:

$ adb shell am start -n "com.ebookfrenzy.androidsample/com.ebookfrenzy.androidsample.AndroidSampleActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER 
Connected to process 2542 on device emulator-5554 
I/art: Not late-enabling -Xcheck:jni (already on) 
W/System: ClassLoader referenced unknown path: /data/app/com.ebookfrenzy.androidsample-1/lib/x86_64 
I/InstantRun: Instant Run Runtime started. Android package is com.ebookfrenzy.androidsample, real application class is null. 
W/System: ClassLoader referenced unknown path: /data/app/com.ebookfrenzy.androidsample-1/lib/x86_64 
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 

        [ 12-18 20:03:53.363 2542: 2542 D/   ] 
        HostConnection::get() New Host Connection established 0x7f710991c140, tid 2542 


        [ 12-18 20:03:53.377 2542: 2542 W/   ] 
        Process pipe failed 

        [ 12-18 20:03:53.502 2542: 2587 D/   ] 
        HostConnection::get() New Host Connection established 0x7f710991b3c0, tid 2587 
I/OpenGLRenderer: Initialized EGL, version 1.4 
E/EGL_emulation: tid 2587: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH) 
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f710139e400, error=EGL_BAD_MATCH 

その中にいくつかの答えがHarware Randering『「にRandering設定するようにしてください』と言います。、しかし、それは同じエラーメッセージを仕事と受信しませんどのように私はそれを修正することができ

+0

[Androidスタジオ - エミュレータ - eglSurfaceAttribが実装されていません](http://stackoverflow.com/questions/28966496/android-studio-emulator-eglsurfaceattrib-not-implemented)の可能な複製 – Aryan

答えて

0

この問題が発生した私は、次を発見したのはなぜ?:?

属性がEGL_SWAP_BEHAVIORある場合10

EGL_BAD_MATCHが生成され、値が EGL_BUFFER_PRESERVEDであり、 EGLConfigのEGL_SURFACE_TYPE属性は EGL_SWAP_BEHAVIOR_PRESERVED_BITを含まない表面を作成するために使用されます。

参考:eglSurfaceAttrib クロノスグループは、標準のOpenGLインタフェースを提供する非営利団体です。

これをどのように解決しますか?あなたのAndroidエミュレータでは、内蔵(ハードウェア)グラフィックカードを使用することができます。私はthisが助けて欲しい。

関連する問題