[Android] Add support for setting version codes in apk

(cherry picked from commit 87e47ac1cc8c360b04777125a0ecf77f02e1ad4b)