当前位置: 首页 > 知识库问答 >
问题:

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

颜嘉福
2023-03-14

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

方法:build_dxc6m5s863o0nfrfjdg2bqjp.android()的签名不适用于参数类型:(build_dxc6m5s863o0nfrfjdg2bqjp$_run_closure1)值:[build_dxc6m5s863o0nfrfjdg2bqjp$_run_closure1@18112963]

分级文件:

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')
}

共有1个答案

佟云
2023-03-14

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

defaultConfig {
    //....
    versionCode 15
    versionName "1.15"
}
 类似资料: