I upgraded my gradle to 4.1
project.ext.set("currentGradleVersion", "4.1")
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
I moved all the "compile" to "implementation" since "compile" is deprecated. Also changed variant.outputs.each to variants.outputs.all
The apk generates with the correct versionName
But when I used aapt command "./aapt d badging **.apk" All the below are returned as empty, what went wrong?
versionCode='' versionName='' platformBuildVersionName=''