How to change gradle version and android gradle plugin?


#1

Hello,

I would like to change the gradle version to 4.4 and the android gradle plugin to 3.1.0
I tried the following:

android gradle-version=“4.4”
android gradle-plugin=“3.1.0”

in my project.xml file but it does not work, showing this error message:

Failed to apply plugin [id ‘com.android.application’]

Gradle version 2.10 is required. Current version is 4.4. If using the gradle wrapper, try editing the distributionUrl in C:\perforce\cs_ExtensionModuleSystem\ExtensionModule\bin\android\bin\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip

Whats wrong?


#2

Lime build tools version is 5.9.1.

Any help will be appreciated.


#3

Are you doing it like <config:android gradle-version="" />?


#4

I used <android gradle-version=“4.4 /> so that was my mistake, with your node it works.

Is there any flag to turn on gradle debugging/logging?


#5

I’m not sure, is there a define or some other way of normally enabling more verbose Gradle output, when using it manually?


#6

Yes, like gradle ‘task’ --info, gradle ‘task’ --stacktrace or gradle ‘task’ --debug


#7

Perhaps we should call some of these automatically, based on existing flags, such as --info when using -verbose, or --debug when using -debug, or perhaps this is not really desired. Should --stacktrace always be defined, or does that really slow down the build?


#8

This would be cool. Stacktrace is not desired.