Fixed
Status Update
Comments
jo...@google.com <jo...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com>
wf...@google.com <wf...@google.com>
wf...@google.com <wf...@google.com>
an...@google.com <an...@google.com> #2
This can be either an issue with interface method desugaring, most likely one of the dependency has now new static/default/private methods on interfaces which is incorrectly supported by our compiler, or it's an issue with desugared library, or both.
To rule the options out:
- Are you using desugared library in your project (https://developer.android.com/studio/write/java8-support-table )?
- What is the minSdk of your project? If it's strictly below 24, and you change it to 24, and let us know if the issue happens.
If you want us to help you further, for example by helping you build a work-around, or fix the compiler, we need you to either provide us a reproduction project (github or zip) or a compilation dump of your application (See how to generate dumps herehttps://r8.googlesource.com/r8/+/refs/heads/main/doc/compilerdump.md ).
Thanks for the report.
To rule the options out:
- Are you using desugared library in your project (
- What is the minSdk of your project? If it's strictly below 24, and you change it to 24, and let us know if the issue happens.
If you want us to help you further, for example by helping you build a work-around, or fix the compiler, we need you to either provide us a reproduction project (github or zip) or a compilation dump of your application (See how to generate dumps here
Thanks for the report.
ty...@gmail.com <ty...@gmail.com> #3
Yes, I'm using desugaring, version 1.2.2 (to work with LocalDate). I tried to build a signed apk with disabled desugaring and the build was successful.
In my project minSdk is 24.
Unfortunately I can't provide you the source code or dump as this is a confidential project, but I can provide a list of dependencies, build.gradle files and a class that works with LocalDate if that helps, or maybe smth else, but not a whole project(
In my project minSdk is 24.
Unfortunately I can't provide you the source code or dump as this is a confidential project, but I can provide a list of dependencies, build.gradle files and a class that works with LocalDate if that helps, or maybe smth else, but not a whole project(
Description
This issue is for the Android Gradle Plugin, but the web UI won't let me create issues for AGP.
DESCRIBE THE ISSUE IN DETAIL:
I see an unhelpful error when adding AGP to a Gradle project.
STEPS TO REPRODUCE:
id("com.android.library") version "8.7.0"
to a projectIssues:
: (root project)
"build.gradle.kts
results in an error: Unresolved reference: compileSdkVersion. Suggestion: add a small code snippet in the error to demonstrate.