[Interest] Qt for Android 6.8.0 & cmake - Setting package Name

Nuno Santos nuno.santos at imaginando.pt
Thu Oct 17 17:58:54 CEST 2024


Hi,

I’m trying to port an application to Cmake in Qt for Android.

I’m not able to set the package name. I set it in QtCreator, it gets modified in AndroidManifest.xml but then, when AndroidManifest.xml is copied to the build, it has a different value and I have warning from gradle:

Value set in QtCreator: com.imaginando.drc

package="org.qtproject.example.drc" found in source AndroidManifest.xml: /private/tmp/drc/build/Android_Qt_6_8_0_Clang_arm64_v8a-Debug/android-build-drc/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="org.qtproject.example.drc" from the source AndroidManifest.xml: /private/tmp/drc/build/Android_Qt_6_8_0_Clang_arm64_v8a-Debug/android-build-drc/AndroidManifest.xml.

I’ve tried to set it build.gradle as it is below without success:

android {
    namespace “com.imaginando.drc"

Any ideas on how to workaround this or what is the best practice?

Thanks!

Nuno




More information about the Interest mailing list