gpt4 book ai didi

android - 如何修复 > 方法 : build_dxc6m5s863o0nfrfjdg2bqjp. android() 没有签名适用于参数类型

转载 作者:行者123 更新时间:2023-12-04 23:37:40 24 4
gpt4 key购买 nike

问题:评估项目“:app”时出现问题。

No signature of method: build_dxc6m5s863o0nfrfjdg2bqjp.android() is applicable for argument types: (build_dxc6m5s863o0nfrfjdg2bqjp$_run_closure1) values: [build_dxc6m5s863o0nfrfjdg2bqjp$_run_closure1@18112963]


Gradle 文件:
apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.numix.calculator_pro"

testApplicationId "com.numix.calculator_pro_pro.pro.tests"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
}

lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}

buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
implementation 'com.android.support:support-v4:21.0.3'
compile files('libs/achartengine.jar')
compile files('libs/ejml-0.21.jar')
compile files('libs/arity-2.1.6.jar')
compile files('libs/slider.jar')
compile files('libs/acra-4.5.0-sources.jar')
compile files('libs/acra-4.5.0-javadoc.jar')
}

最佳答案

检查 build.gradle 中是否存在 versionCode 变量,它是整数,而不是字符串:

defaultConfig {
//....
versionCode 15
versionName "1.15"
}

关于android - 如何修复 > 方法 : build_dxc6m5s863o0nfrfjdg2bqjp. android() 没有签名适用于参数类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65448284/

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