You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am working on KMM (Kotlin Multiplatform for Mobile) and while upgrading android and common dependencies (kotlin: 1.9.20, Gradle Plugin: 8.1.0), I have encountered a weird issue.
Task failed with an exception.
What went wrong:
Execution failed for task ':shared:extractDebugAnnotations'.
Could not resolve all files for configuration ':shared:detachedConfiguration1'.
Could not find error_prone_annotations-2.11.0.jar (com.google.errorprone:error_prone_annotations:2.11.0).
Searched in the following locations:
../maven/v1/com/google/errorprone/error_prone_annotations/2.11.0/error_prone_annotations-2.11.0.jar
Checked all the dependencies and found this lib is used in com.google.guava:guava:31.1-jre
I have tried to exclude the dependency, enforce the version 2.11.0 or even the latest one 2.24.0, but nothing worked. Please help me resolving the issue.
Dependencies should be resolved without any error.
Actual Behavior
Execution failed for task ':shared:extractReleaseAnnotations'.
Could not resolve all files for configuration ':shared:detachedConfiguration1'.
Could not find error_prone_annotations-2.11.0.jar (com.google.errorprone:error_prone_annotations:2.11.0).
You'll probably want to try https://stackoverflow.com/. My guess is that there is something specific about your configuration that is preventing Gradle from finding the jar. Based on the name "detachedConfiguration," I wonder if the build is configured to not download jars from Maven Central. If so, then you'll need to either let it download from Maven Central, download the jar you need yourself (and put it in ../maven/v1/com/google/errorprone/error_prone_annotations/2.11.0/, presumably), or force Gradle to use a version that you do have downloaded (which you may be able to identify by looking at which directories exist in ../maven/v1/com/google/errorprone/error_prone_annotations/). I would also have expected for excluding the dependency to work, so I'd suggest including how you tried to do that and what the results were when you ask on Stack Overflow.
Description
Hello,
I am working on KMM (Kotlin Multiplatform for Mobile) and while upgrading android and common dependencies (kotlin: 1.9.20, Gradle Plugin: 8.1.0), I have encountered a weird issue.
Task failed with an exception.
Execution failed for task ':shared:extractDebugAnnotations'.
Checked all the dependencies and found this lib is used in
com.google.guava:guava:31.1-jre
I have tried to exclude the dependency, enforce the version 2.11.0 or even the latest one 2.24.0, but nothing worked. Please help me resolving the issue.
Thanks
Praveen Gupta
Example
Expected Behavior
Dependencies should be resolved without any error.
Actual Behavior
Execution failed for task ':shared:extractReleaseAnnotations'.
Packages
No response
Platforms
Android, Java 17
Checklist
The text was updated successfully, but these errors were encountered: