问题
I have strange problem with app version in fabric beta. After executing task :app:crashlyticsUploadDistribution build uploaded successfully. Version name and version code are correct for build, but version in the list of uploaded builds is always 0.0(0).And after downloading, versions of this builds are correcting. Wrong versions displayed only on fabric.
Update:
For setting version name and code I'm using "com.gladed.androidgitversion" plugin :
androidGitVersion {
format '%tag%'
}
android {
defaultConfig {
applicationId "my_package"
minSdkVersion 19
targetSdkVersion 25
multiDexEnabled true
versionName androidGitVersion.name()
versionCode androidGitVersion.code()
}
}
来源:https://stackoverflow.com/questions/47181179/app-version-always-0-00-after-upload-to-fabric-beta