App stops working. Emulator problems. GL error: GL_INVALID_OPERATION. Android Studio

Viewed 14

I am following a youtube tutorial for creating a simple project. I have an Android 10 phone, so I created an Android 10 Q API 29 Emulator. At a specific place my app stops working.

In AndroidManifest.xml

Before the crashes:

<activity
            android:name=".SplashScreenActivity"
            android:exported="false">
            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>
        <activity
            android:name=".MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

Changes that led to the crashes:

<activity
            android:name=".MainActivity"
            android:exported="false">
            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>
        <activity
            android:name=".SplashScreenActivity"
            android:exported="true"
            android:theme="@style/SplashTheme.EscomX">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

the Error message in the Run tab states:

E/OpenGLRenderer: GL error: GL_INVALID_OPERATION
A/OpenGLRenderer: GL errors! frameworks/base/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp:126
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 12022 (RenderThread), pid 11984 (.example.escomx)

The code should not be a problem because i have created this app on a Android 7.1.1 Nougat API 25 Emulator and it worked. Today I have also tested it on Android 9 Pie API 28 and Android 12 S API 31 and it worked as well, but on Android 11 R API 30, after execution it leaves a huge error log. Why does my app work on some emulators but not on others? Does this mean that sertain physical devices with the previously stated Android versions won't run it correctly?

Edit: Even the API 30 emulator skips my splash (loading) screen and jumps right to the next activity. For now only API 28 works as expected. My guessing is that there have been changes done with the newer versions of android and thats why my code does not work properly.

0 Answers
Related