[Interest] Qt for Anroid - How to add dependencies to build.gradle?

coroberti . coroberti at gmail.com
Sun Sep 10 18:24:47 CEST 2017


Yes, it works!

Thank you very much!

Kind regards,
Robert

On Sun, Sep 10, 2017 at 3:43 PM, noname <freekee1 at gmx.de> wrote:

> hi,
>
> you can add a custom directory to your pro-file of which all contained
> files (and subdirectories) will be merged into the generated "android"
> folder. the generated one will be replaced with the provided "custom" ones
> if present, i think.
> should be "ANDROID_PACKAGE_SOURCE_DIR" in the pro file. more info in the
> docs: http://doc.qt.io/qt-5/deployment-android.html#
> android-specific-qmake-variables.
> that way i'm also adding custom dependencies using a custom "build.gradle"
> (full file, i.e. i copied the entire generated build.gradle to my
> "customized_android" directory, then added my custom lines).
>
>
> kind regards
>
>
> On 10.09.2017 10:51, coroberti . wrote:
>
> Hi,
> Is there a way to add to build.gradle some extra dependencies to the 3-rd
> libs
> besides manual editing of the file?
>
> Some trick in Qt project pro file to add?
>
> If find myself manually adding something like:
>
> compile 'com.android.support:support-v4:25.+'
> compile 'com.google.http-client:google-http-client-gson:1.22.0'
>
> Thanks in advance!
>
> Kind regards,
> Robert
>
>
> _______________________________________________
> Interest mailing listInterest at qt-project.orghttp://lists.qt-project.org/mailman/listinfo/interest
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170910/df559e47/attachment.html>


More information about the Interest mailing list