Solved Property of gradle.properties
-
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
-
@montjet I think you have to add those line into android/gradle/wrapper/gradle-wrapper.properties
-
It looks that gradle-wrapper.properties ignores these lines of code.
-
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
-
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.
-
@TripleF Awesome, this works! Thank you