cannot sync gradle "No signature of method...is applicable for argument types" (solved)
or-dvir opened this issue · comments
Posting this in case someone else encounters this problem.
This block:
compileOptions {
this.sourceCompatibility(JavaVersion.VERSION_1_8)
this.targetCompatibility(JavaVersion.VERSION_1_8)
}
produces this error:
A problem occurred evaluating project ':app'.
> No signature of method: build_bvts92csqxta8zj3w9f3ounsq.android() is applicable for argument types: (build_bvts92csqxta8zj3w9f3ounsq$_run_closure1) values: [build_bvts92csqxta8zj3w9f3ounsq$_run_closure1@5e3f4934]
Solution
remove this
keyword:
compileOptions {
sourceCompatibility(JavaVersion.VERSION_1_8)
targetCompatibility(JavaVersion.VERSION_1_8)
}
Thanks for the report, I think I copy-pasted that part from a kts
file.
Fixed. 👍