[gradle] Conflict with AGP9 when used in composite build (buildSrc) #2059
Replies: 6 comments
-
|
The missing class is provided by Is it possible that it may be filtered out by Android Studio? |
Beta Was this translation helpful? Give feedback.
-
Not Android Studio itself, but maybe the android plugin? I forgot to mention that it was working before the Gradle + AGP version 9. And it works in another project without AGP (with Gradle 9). |
Beta Was this translation helpful? Give feedback.
-
|
Could you try adding the given dependency to the plugin set and try again? |
Beta Was this translation helpful? Give feedback.
-
But I (gemini) managed to make it works by isolating my precompiled plugin in another included build |
Beta Was this translation helpful? Give feedback.
-
|
Ah, precompiled plugins strike once again. |
Beta Was this translation helpful? Give feedback.
-
|
Gemini gave me a simple workaround for this problem: Add the com.sun.activation:javax.activation library to the project's buildscript classpath. See here for an example. It gave the following justification for the workaround:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Task List
Steps to Reproduce
With repro project
repro/jreleaserimplementation(libs.jreleaserGradlePlugin)inbuildSrc/build.gradle.ktsFrom scratch
build.gradle.ktsof thebuildSrc, import both android gradle plugin (9.0.0) and jreleaser (1.22.0)Expected Behaviour
Sync ok
Actual Behaviour
-> the same project structure was working before the AGP 9 update
Full stack
Environment Information
Please paste stacktraces from[out|build|target]/jreleaser/trace.log.Beta Was this translation helpful? Give feedback.
All reactions