Property of gradle.properties
-
wrote on 29 Jul 2019, 14:05 last edited by
Hi,
How can I set a new property of gradle.properties in qtCreator?
I want to set these two lines:android.useAndroidX=true android.enableJetifier=true
-
Hi,
How can I set a new property of gradle.properties in qtCreator?
I want to set these two lines:android.useAndroidX=true android.enableJetifier=true
-
wrote on 30 Jul 2019, 05:41 last edited by
It looks that gradle-wrapper.properties ignores these lines of code.
-
wrote on 30 Jul 2019, 06:25 last edited by
I found solution.
For someone else who will have the same problem.
Just add this line:set GRADLE_OPTS=-Dorg.gradle.project.android.useAndroidX=true -Dorg.gradle.project.android.enableJetifier=true
to gradlew.bat after
set DEFAULT_JVM_OPTS=-Xmx1024m -Dfile.encoding=UTF-8
-
wrote on 25 Jun 2020, 14:23 last edited by
At least with Qt 5.15 you can just create a gradle.properties file in your Android template directory (ANDROID_PACKAGE_SOURCE_DIR). androiddeployqt will merge any properties there with its own.
-
At least with Qt 5.15 you can just create a gradle.properties file in your Android template directory (ANDROID_PACKAGE_SOURCE_DIR). androiddeployqt will merge any properties there with its own.
wrote on 17 Aug 2020, 08:56 last edited by@TripleF Awesome, this works! Thank you