-1

我知道问题出在:不支持的方法:BaseConfig.getApplicationIdSuffix(),但问题是我在 builde.gradle 文件中根本没有“类路径”来更改它。这是 build.gradle 的内容:

apply plugin: 'com.android.application'
android {
    compileSdkVersion 29
    buildToolsVersion "20.0.0"

    defaultConfig {
        minSdkVersion 17
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])


}

安卓工作室 4.0。我是android新手,非常感谢任何帮助

4

1 回答 1

1

在你项目的 build.gradle 文件中添加这个

 dependencies {
  classpath "com.android.tools.build:gradle:4.0.0"
  }
于 2020-06-16T04:01:41.883 回答