-2

When I want to add automatic parameters to gradle task ,there was no choice to click! enter image description here

xuweiwei
  • 1
  • 2

2 Answers2

0

Pass all job parameters as Project parameters should have the desired effect.

wolfs42
  • 796
  • 1
  • 5
  • 9
0

Just like this.

#gradle.properties

VERSION_CODE=328
VERSION_NAME=1.5.8


#module build.gradle

  versionCode project.VERSION_CODE as int
  versionName project.VERSION_NAME
xuweiwei
  • 1
  • 2