How to add OpenGL ES to C++ project with SDL3 that compiles with Gradle for Android

The problem is not related to Gradle. I added some libraries to CMakeLists.txt and the gradlew assembleDebug works:

CMakeLists.txt

target_link_libraries(${EXECUTABLE_NAME} PUBLIC SDL3::SDL3 android EGL GLESv2)

Cross-refs: