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]才行.