Solved How to manipulate build.gradle through androiddeployqt.exe?
-
In my project, we are using androiddeployqt.exe to create the Android application with command lines.
And we use Gradle (--gradle).The file, "build.gradle", is generated by androiddeployqt.exe automatically.
How do I add something to it?
How to I put my own stuffs into it, in the final generated build.gradle?
Does androiddeployqt.exe take some inputs for that?I know I can have my own gradle.properties because androiddeployqt.exe will merge the properties for me.
-
@Horatio said in How to manipulate build.gradle through androiddeployqt.exe?:
androiddeployqt.exe
I never used it, but did you try to call it with -h or --help parameter? Did you read http://doc.qt.io/qt-5/deployment-android.html ?
-
@Horatio
it's only created upon first run no? (At least in QtCreator - i don't know the exact workflow though)
Once it is created you can add modify it to your needs. -
The "build.gradle" is created only when there is no existing one.
And, it is created from the template: Src\qtbase\src\android\templates\build.gradle.Besides owning a build.gradle in my project, the other workaround is to read content from the template, add my own stuffs, and then write to a new 'build.gradle' before calling androiddeployqt.exe.