ERROR: No signature of method: build_ap86oam3dut3pxce3x49rdtma.android() is applicable for argument types: (build_ap86oam3dut3pxce3x49rdtma$_run_closure1) values: [build_ap86oam
I had this exact same issue. It is a nasty one.
I followed the answer first here Deprecated Gradle features not compatible and ran in the terminal cd android && ./gradlew clean && ./gradlew :app:bundleRelease
the gradlew command gave more detialed feedback, and turned out my Java and JDK were 32bit instead of 64 and also outdated...
This resulted in further errors, but could resolve them step by step: Invalid initial heap size -Xms4096M Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation
In my case, the error cause is below
compilpepeeSdkVersion
rather than
compileSdkVersion
It is because there's syntax error in android{..}
part of build.gradle
You've used implementationSdkVersion
which should ideally be compileSdkVersion
. Error in variable names in android{..}
leads to such errors.
TLDR;
Replace implementationSdkVersion
with compileSdkVersion
in my case I needed to comment out this lines in gradle
androidExtensions{
experimental = true
}
Try to comment this in your app level build.gradle
file
openOptions {
disable 'InvalidPackage'
}
Thanks for mentioning to just comment things and test, for me it was:
kapt {
useBuildCache = true
}
Removed it, everything was building again. Happened after updating Kotlin version.