gpt4 book ai didi

android - 找不到参数[1.1]的方法versionCode()

转载 作者:行者123 更新时间:2023-12-03 06:26:17 26 4
gpt4 key购买 nike

我将versionCode从1.0更改为1.1,如下所示:

versionCode 1.1
versionName "1.1"

现在我无法同步该项目,因为它给了我这个错误:

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method versionCode() for arguments [1.1] on DefaultConfig_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=16, mCodename='null'}, targetSdkVersion=DefaultApiVersion{mApiLevel=28, mCodename='null'}, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptSupportModeBlasEnabled=null, renderscriptNdkModeEnabled=null, versionCode=1, versionName=1.10.1, applicationId=com.github.fahadmaqsood.likhat, testApplicationId=null, testInstrumentationRunner=android.support.test.runner.AndroidJUnitRunner, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={CRASH_REPORT_EMAIL_ADDRESS=com.android.builder.internal.ClassFieldImpl@b2244504}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}, mWearAppUnbundled=null} of type com.android.build.gradle.internal.dsl.DefaultConfig.

最佳答案

official docs中,版本代码必须为正整数。

通常,每次有更新时,它将增加1。

关于android - 找不到参数[1.1]的方法versionCode(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61481784/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com