Qt apps fail to run on Android 4.4 KitKat as a result of a use of reflections to access a private member variable which was renamed.
Specifically, in Qt's androidjnimain.cpp, the hardcode usage of a private member variable name (through reflections) of Android/View/Surface on the following line: GET_AND_CHECK_FIELD(m_surfaceFieldID, clazz, "mNativeSurface", "I");
fails since this member variable no longer exists in Android 4.4 KitKat and appears (by performing a code search) to have been renamed to "mNativeSurfaceTexture".
Deploying a QtQuick application from QtCreator to an Android device running KitKat, the application fails at runtime with a FieldNotFound exception and subsequent stack trace.
- replaces
-
QTBUG-35523 Qt Everywhere instantly crashes on Android 4.4.2 using ART
-
- Closed
-