def VersionCode = "19"
ant.replaceregexp(file:"../Assets/Plugins/Android/AndroidManifest.xml", byline:true, match:'android:versionCode="[0-9]+"', replace:"android:versionCode=\"${VersionCode}\"", encoding:"UTF-8")

 唯一注意的地方是match这个参数, 不知道为什么写成

match:'android:versionCode="\d+\"'  就不行, 非得老老实实地把\d改成 [0-9]才行.

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-11-02
  • 2021-09-10
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-11-16
  • 2021-12-17
  • 2021-11-03
  • 2021-07-05
  • 2021-12-23
  • 2021-08-07
相关资源
相似解决方案