-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.14.2
-
None
I currently have the following in my AndroidManifest.xml file:
<meta-data android:name="android.app.extract_android_style" android:value="minimal"/>
According to the comment in the template manifest file and also considering the documentation of Qt Creator (https://doc.qt.io/qtcreator/creator-deploying-android.html), the minimal option should be useful when using QML/QQC2 (which I am using with my app).
When uploading an AAB of my app to the Play Store, I get several findings from the Pre-Launch testing which all more or less look like this:
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/R$styleable;->CalendarView_shownWeekCount:I at android.os.StrictMode.lambda$static$1(StrictMode.java:428) at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2) at java.lang.Class.getDeclaredField(Native Method) at org.qtproject.qt5.android.ExtractStyle.getField(ExtractStyle.java:429) at org.qtproject.qt5.android.ExtractStyle.extractCalendar(ExtractStyle.java:1861) at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:2020) at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:614) at java.lang.reflect.Method.invoke(Native Method) at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:267) at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:505) at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:166) at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266) at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273) at android.app.Activity.performCreate(Activity.java:7144) at android.app.Activity.performCreate(Activity.java:7135) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271) at androidx.test.runner.MonitoringInstrumentation.callActivityOnCreate(MonitoringInstrumentation.java:14) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6718) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
From the Qt Creator documentation (https://doc.qt.io/qtcreator/creator-deploying-android.html) I would assume that these warnings only occur when using the full option, however, they now also seem to happen with the minimal one.
I am not sure if this really is an issue or really just harmless warnings, but it would be great if this would be documented appropriately in this case ![]()
Let me know if more input from my side is required.
- depends on
-
QTBUG-84169
Investigate ways to overcome the style extraction methods on Android [Spike]
-
- Closed
-
- is duplicated by
-
QTBUG-71590 Qt is using "Non-SDK" interfaces, will be blocked by Android
-
- Closed
-