Status Update
Comments
ha...@google.com <ha...@google.com>
pa...@google.com <pa...@google.com>
an...@google.com <an...@google.com> #3
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Narwhal | 2025.1.1 Canary 4
- Android Gradle Plugin 8.11.0-alpha04
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ef...@careem.com <ef...@careem.com> #4
Reenabled the inspection in Narwhal Canary 4, still an issue unfortunately.
ef...@careem.com <ef...@careem.com> #5
I dont think it's an isolated issue. I see it across many/any APIs that either try to call apis from an outer scope OR that use "member extension properties/functions" ie something like
class A {
val B.something get() = ...
fun B.stuff() { ... }
}
The kotlin KotlinMultiplatformSourceSetConventions
reported in the original issue is just one example of the above. In my root build.gradle.kts I have a couple more. Uploaded a screenshot to illustrate, every red line is a WrongGradleMethod error, even for gradle native apis like org.gradle.kotlin.dsl.configure
Android Studio Narwhal | 2025.1.1 Canary 4
Build #AI-251.23774.16.2511.13307899, built on April 3, 2025
Runtime version: 21.0.6+-13119726-b895.91 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.3.2
Kotlin plugin: K2 mode
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 12
Metal Rendering is ON
Registry:
ide.instant.shutdown=false
ide.experimental.ui=true
com.android.studio.ml.activeModel=com.android.studio.ml.AidaModel
terminal.new.ui=true
kotlin.scripting.index.dependencies.sources=true
Non-Bundled Plugins:
de.ehmkah.projects.imgdiff (1.11.0)
io.github.composegears.valkyrie (0.13.0)
com.github.copilot (1.5.40-243)
Build: AI-251.23774.16.2511.13307899, 202504030930
AS: Narwhal | 2025.1.1 Canary 4
AI-251.23774.16.2511.13307899, JRE 21.0.6+-13119726-b895.91x64 JetBrains s.r.o., OS Mac OS X(aarch64) v15.3.2, screens 4112x2658 (200%); Retina
Android Gradle Plugin: (plugin information not found)
Gradle: 8.13
Gradle JDK: Azul Zulu 21.0.6 - aarch64
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
Description
Seeing errors with message "Suspicious receiver type; this does not apply to the current receiver of type ..." in Gradle kotlin build scripts.
Workaround for now is to turn off the inspection under: Editor > Inspections > Android Lint: Correctness > Wrong Gradle method invoked
Steps to reproduce: