Android: set useLegacyPackaging to true in build.gradle

Since we set android:extractNativeLibs to "true" in AndroidManifest.xml,
a warning is thrown by the gradle build, which needs the property
packagingOptions.jniLibs.useLegacyPackaging to be set to true.

Pick-to: 6.2 6.3 5.15
Change-Id: I725d2663d68ab88abfda630f8a61666510043967
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Ramon Sadornil <ramon.sadornil@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
bb10
Assam Boudjelthia 2021-10-06 12:32:01 +03:00
parent 56dee3de5e
commit 3a9aba287c
3 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,6 @@
android:smallScreens="true" />
<application
android:name="org.qtproject.qt.android.bindings.QtApplication"
android:extractNativeLibs="true"
android:hardwareAccelerated="true"
android:label="-- %%INSERT_APP_NAME%% --"
android:requestLegacyExternalStorage="true"

View File

@ -38,6 +38,9 @@ android {
buildToolsVersion androidBuildToolsVersion
ndkVersion androidNdkVersion
// Extract native libraries from the APK
packagingOptions.jniLibs.useLegacyPackaging true
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'

View File

@ -99,9 +99,6 @@ Qt sets the following manifest configuration by default:
\row
\li android:label
\li The application name label. Default value is the Qt project's target name.
\row
\li android:extractNativeLibs
\li Extracts the native C++ libraries on installation. The default value is \c true.
\row
\li android:hardwareAccelerated
\li Sets hardware acceleration preference. The default value is \c true.