错误:没有方法签名:build_ap86oam3dut3pxce3x49rdtma.android() 适用于参数类型:(build_ap86oam3dut3pxce3x49rdtma$_run_closure1) 值:[build_ap86oam3dut3pxce3x49rdtma$_run_closure1@47588b04]
构建等级是:
apply plugin: 'com.android.application'
android{
implementationSdkVersion 28
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.uiresource.taksiku"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.3-alpha', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation "com.android.support:appcompat-v7:$var"
implementation 'com.android.support:design:28.0.0'
testimplementation 'junit:junit:4.13'
implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta5'
implementation 'de.hdodenhof:circleimageview:3.1.0'
}
最佳答案
如果您使用的是 kotlin 版本 1.4.21 或更高版本,则不推荐使用 kotlin-android-extension。
因此,如果您删除插件,您还必须删除 android 实验扩展 block 。
就我而言,我不得不删除这些代码。
apply plugin: 'kotlin-android-extensions'
androidExtensions {
experimental = true
}
但是如果上面没有解决它这是一种通用和/或包装 隐藏真正原因和/或问题的错误,因此要查看实际错误消息,请尝试以下操作:
./gradlew :app:assembleDebug --stacktrace
And search for resulting real error-message instead.
关于android - 如何修复错误 : No signature of method: build_ap86oam3dut3pxce3x49rdtma. android()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61807520/