Android App Bundle版本代码突然变得很高 [英] Android App Bundle Version code suddenly very high

查看:44
本文介绍了Android App Bundle版本代码突然变得很高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为我的React Native应用制作了一个新的Android捆绑包.我在android/app/build.gradle中将版本代码从90手动更新为91,但是现在我尝试上传到Play商店,版本代码为3145819(我希望看到91)

I just made a new Android bundle for my React Native app. I manually updated the version code from 90 to 91 in android/app/build.gradle, but now that I am trying to upload to Play Store, the version code is 3145819 (I expected to see 91)

build.gradle:

build.gradle:

 defaultConfig {
        applicationId "com.myapp"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 91
        versionName "4.1.0"
        multiDexEnabled true
        missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57_5"
        resValue "string", "build_config_package", "com.myapp"
    }

我使用此命令捆绑:

./gradlew bundleProdRelease --console plain

不确定为什么会这样,我绝对更喜欢较小的版本代码(在报告错误时,用户更容易阅读).

Not sure why this is happening, and I definitely prefer a smaller version code (easier for users to read when reporting bugs).

有什么想法,怎么解决?

Any idea what's going on here and how to fix it?

推荐答案

我遇到了同样的问题.每当我运行 ./gradlew bundleRelease 而我更改

I had the same issue. It occurred whenever I ran ./gradlew bundleRelease and I changed

def enableSeparateBuildPerCPUArchitecture = false

def enableSeparateBuildPerCPUArchitecture = true

此功能可在 android/app/build.gradle

除了将 enableSeparateBuildPerCPUArchitecture 更改回 false

这篇关于Android App Bundle版本代码突然变得很高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆