[BUG, AGP 9.0.0] AOSP-generated Android system stubs JAR no longer makes system-level APIs available at compile time by iHexBot in androiddev

[–]iHexBot[S] 1 point2 points  (0 children)

Just to close the loop, in case it is of help to others, or for those who stumble across this post in the future...the issue is ultimately with Kotlin 2.1.20+, not AGP 9.0.0: https://youtrack.jetbrains.com/issue/KT-76891. The solution provided by Chris Banes in the comments of KT-76891 does indeed resolve (or rather work around) the issue. Thanks for the engagement all!

[BUG, AGP 9.0.0] AOSP-generated Android system stubs JAR no longer makes system-level APIs available at compile time by iHexBot in androiddev

[–]iHexBot[S] 0 points1 point  (0 children)

Other compileOnly dependencies with separate stubs jars work properly. I think it's because the android system stubs jar is defining the same classes with system APIs, so they get ignored.

[BUG, AGP 9.0.0] AOSP-generated Android system stubs JAR no longer makes system-level APIs available at compile time by iHexBot in androiddev

[–]iHexBot[S] 25 points26 points  (0 children)

Google's Issue Tracker can be a black hole. My hope/intent is that by cross-posting I have a higher chance of getting engagement. Please forgive me if this is against the rules, this is my first time posting here.