Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Use Markdown for this comment
Set severity, which reflects how much the issue affects the use of the product
Change issue status back to 'Assigned'
Pending code changes (auto-populated)
[ID: 84651]
Select items in the list
[ID: 558956]
[ID: 874707]
Set the version(s) of the product affected by this issue (comma-separated list)
Set the version(s) of the product in which the issue should be fixed (comma-separated list)
Set the version(s) of the product in which the issue fix was verified (comma-separated list)
Set if this issue occurs in production
[ID: 85206]
Set Reporter
Set Type
Set priority, which reflects how soon the issue should be fixed
Set Status
Set Assignee
Set Verifier
Remove item
View or edit staffing
View issue level access limits(Press Alt + Right arrow for more information)
Description
#1When upgrading Compose from 1.5 -> 1.6, the Application stops working and immediately crashes with:
```
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/ComposeView;
```
Issue repro:
Build Scan:
The build scan shows that after upgrading to Compose 1.6, the app starts being packaged with `desktop` compose artifacts rather than `android` artifacts. This seems to happen because the application module does not apply the kotlin gradle plugin. Once I apply the kotlin plugin to the app module (even though that would be unnecessary) the issue goes away.
For projects that have a combination of Kotlin/Compose and Java modules, another issue is that the build resolves compose-desktop artifacts during the build process for any java module that happens to have a transient dependency on compose.
STEPS TO REPRODUCE:
1. Create a project with library module (compose + kotlin) and app module (pure Java)
2. Upgrade compose runtime dependencies to 1.6+
3. Observe crash on launch, android compose artifacts not included in APK
------------------
Studio Build: Jellyfish
Version of Gradle Plugin: 8.2.2
Version of Gradle: 8.6
Version of Java: 17
OS: macOS