[Qbs] Qtc: Cannot find the androiddeploy Json file

Raphael Cotty raphael.cotty at gmail.com
Thu May 14 14:16:41 CEST 2020


Hi,
The json file used in android_support.qbs is an input file used by the
androiddeployqt tool to generate the apk.
Here, the term deploy refers to gathering all the qt dependencies (qt libs,
plugins...) in a directory in order to generate the apk.

The json file you talk about looks more to me to something linked to the
deployment on the target.
Any idea of the json file name when it works?
Raph

Le jeu. 14 mai 2020 à 11:52, Christian Gagneraud <chgans at gmail.com> a
écrit :

> On Tue, 12 May 2020 at 18:37, Richard Weickelt <richard at weickelt.de>
> wrote:
> >
> >
> > > When i want to "run" on the device:
> > > Initializing deployment to Android device/simulator
> > > Deploying to 150c980e8288de07
> > > Cannot find the androiddeploy Json file.
> > > Error while building/deploying project Neon Factory Tools (kit:
> > > Android for arm64-v8a (Clang Qt 5.12.8 for Android ARM64-v8a))
> > > When executing step "Deploy to Android device"
> > >
> > > I think this happens only when i do cosmetic changes in my qbs files.
> > > The only way to recover is to trigger a manual build, changing a
> > > source file is not enough.
> > >
> > > Any idea what's goind on?
> > > Looks to me this problem is on QtC side.
> >
> > A quick guess and without ever having built an Android project: The
> selected
> > product is the application executable and thus, none of the subsequent
> rules
> > is executed. Could that explain it? Have a look at
> >
> https://code.qt.io/cgit/qbs/qbs.git/tree/share/qbs/module-providers/Qt/templates/android_support.qbs
> > There is a rule that produces qt_androiddeployqt_input (the json file)
> which
> > I guess is not requested when you press the "run" button. There are also
> > subsequent rules responsible for the deployment.
> >
> > You could add one of the rule's output to your product type, although I
> > guess there is a cleaner way of doing it.
> >
> > YourAndroidProduct {
> >     type: base.concat("bundled_jar")
> > }
>
> I've tried that and it didn't work :(
> Maybe there's a problem on QtC side...
>
> Chris
> _______________________________________________
> 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/20200514/725de6d9/attachment-0001.html>


More information about the Qbs mailing list