[Interest] Qt for Android 6.8.0 & cmake - Setting package Name
ekke
ekke at ekkes-corner.org
Thu Oct 17 18:30:15 CEST 2024
In Qt 6.8 you can set *QT_ANDROID_PACKAGE_NAME*
see also: https://bugreports.qt.io/browse/QTBUG-106907
ekke
Am 17.10.24 um 17:58 schrieb Nuno Santos via Interest:
> 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
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241017/e80d7c3f/attachment.htm>
More information about the Interest
mailing list