[Qbs] Issues building for Android

Raphael Cotty raphael.cotty at gmail.com
Wed Oct 14 20:50:28 CEST 2020


Hi,
The error comes from this:
home/olathorsen/src/build-androidtest-Android_Qt_5_14_2_Clang_Multi_Abi-Release/Release_Android__97aac75243e7a13e/androidtest.48600a3e/gen/com/example/androidtest/BuildConfig.java:2:
error: duplicate class: com.example.androidtest.BuildConfig

Can you send your project?
Raph

Le mer. 14 oct. 2020 à 20:45, Ola Røer Thorsen <ola at silentwings.no> a
écrit :

> ons. 14. okt. 2020 kl. 19:55 skrev Richard Weickelt <richard at weickelt.de>:
>
>
>> Qt Creator is not part of the tests. We run everything with Qbs only on
>> the
>> command line in a Docker image.
>>
>>
> Thanks!!
>
> Some progress now: first, if I set these two additional properties in the
> Qbs-part of the kit, I get further building:
> Android.sdk.buildToolsVersion: 29.0.2
> Android.sdk.platform: android-29
>
> These two were empty when checking them for the kit used, so the build
> part calling "aidl" failed.
>
> Also, the Qt Creator wizard setting up an empty Qt Quick project for Qbs
> creates it with a CppApplication item, depending only on Qt.quick. This
> caused a further problem "cannot find application binary". Fixed by using
> the QtApplication item instead (just depending on Qt.core does not help).
>
> Now, the build fails because "Some input files use or override a
> deprecated API" (I'll paste the build output below...)
>
> Best regards,
> Ola
>
>
>
> Generating Android Package
>   Input file:
> /home/olathorsen/src/build-androidtest-Android_Qt_5_14_2_Clang_Multi_Abi-Release/Release_Android__97aac75243e7a13e/androidtest.48600a3e/androiddeployqt.json
>   Output directory:
> /home/olathorsen/src/build-androidtest-Android_Qt_5_14_2_Clang_Multi_Abi-Release/Release_Android__97aac75243e7a13e/androidtest.48600a3e/deployqt_out/
>   Application binary: androidtest
>   Android build platform: android-29
>   Install to device: No
>   -- Skipping
> /home/olathorsen/Qt/5.14.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_arm64-v8a.so.
> It has unmet dependencies:
> lib/libQt5Svg_arm64-v8a.so,lib/libQt5Widgets_arm64-v8a.so.
>   -- Skipping
> /home/olathorsen/Qt/5.14.2/android/plugins/imageformats/libplugins_imageformats_qsvg_arm64-v8a.so.
> It has unmet dependencies:
> lib/libQt5Svg_arm64-v8a.so,lib/libQt5Widgets_arm64-v8a.so.
>   -- Skipping
> /home/olathorsen/Qt/5.14.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_x86_64.so.
> It has unmet dependencies:
> lib/libQt5Svg_x86_64.so,lib/libQt5Widgets_x86_64.so.
>   -- Skipping
> /home/olathorsen/Qt/5.14.2/android/plugins/imageformats/libplugins_imageformats_qsvg_x86_64.so.
> It has unmet dependencies:
> lib/libQt5Svg_x86_64.so,lib/libQt5Widgets_x86_64.so.
>   -- Skipping
> /home/olathorsen/Qt/5.14.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so.
> It has unmet dependencies:
> lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
>   -- Skipping
> /home/olathorsen/Qt/5.14.2/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so.
> It has unmet dependencies:
> lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
>   -- Skipping
> /home/olathorsen/Qt/5.14.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_x86.so.
> It has unmet dependencies: lib/libQt5Svg_x86.so,lib/libQt5Widgets_x86.so.
>   -- Skipping
> /home/olathorsen/Qt/5.14.2/android/plugins/imageformats/libplugins_imageformats_qsvg_x86.so.
> It has unmet dependencies: lib/libQt5Svg_x86.so,lib/libQt5Widgets_x86.so.
> processing androiddeployqt outout [androidtest]
> Stripping unneeded symbols from deployed qt libraries [androidtest]
> processing resources [androidtest]
> Error: Process '/usr/lib/jvm/java-8-openjdk-amd64/bin/java' finished with
> exit code 1. The standard output was:
> [
> ]
>  The standard error output was:
> /home/olathorsen/src/build-androidtest-Android_Qt_5_14_2_Clang_Multi_Abi-Release/Release_Android__97aac75243e7a13e/androidtest.48600a3e/gen/com/example/androidtest/BuildConfig.java:2:
> error: duplicate class: com.example.androidtest.BuildConfig
> public final class BuildConfig {
>              ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> 1 error
>
> The following products could not be built for configuration
> Release_Android__97aac75243e7a13e:
> androidtest
>
>
>
>
>
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20201014/a19925f8/attachment.html>


More information about the Qbs mailing list