question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jetpack Compose 0.1.0-dev16 with Compiler Plugin 1.4.0-rc - debugCompileKotlin never starts/ends...

See original GitHub issue

Describe the bug Hey, If you use Jetpack Compose with the android.composeOptions and the Google compiler extensions (see gradle.build.kts in app) and the kotlinx Serialization compiler plugin, the Gradle task debugCompileKotlin never ends. Maybe it even doesn’t start…

To Reproduce After disabling the compiler plugin, the gradle build finished See https://github.com/hfhbd/ComposeTodo) working commit: https://github.com/hfhbd/ComposeTodo/commit/12dfba4ce5080997f049d5fe7c1a27d926830c0b) failing ci log: https://github.com/hfhbd/ComposeTodo/actions/runs/202626642

Expected behavior A working build

Current Workaround Write the serializer by yourself (https://github.com/hfhbd/ComposeTodo/commit/12dfba4ce5080997f049d5fe7c1a27d926830c0b) or move the DTOs into a separate module

Environment

  • Kotlin version: 1.4.0-rc
  • Library version: 1.0-M1-1.4.0-rc
  • Kotlin platforms: JVM (Android)
  • Gradle version: 6.6-rc6
  • IDE version: IntellijIDEA 2020.2
  • Other relevant context: Using Jetpack Compose 0.1.0-dev16

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:25
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
jeremyrempelcommented, Aug 31, 2020

This issue only exists when using compose+serialization if used within the same module. Temporary workaround is to just separate the components into different modules (ui/app+network/serialization).

7reactions
sandwwraithcommented, Oct 12, 2020

I can’t give any particular guarantees. However, we have a plan to align this with Compose Beta.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jetpack Compose Dev16 with Kotlin 1.4 ...
After updating to compose dev-16 and Kotlin 1.4.0-rc, the compileDebugKotlin Gradle task never ends. I created a simple todo app, see GitHub - ......
Read more >
Compose Compiler - Android Developers
Build animations in their Jetpack Compose applications to enrich the user experience. compose.compiler, Transform @Composable functions and enable optimizations ...
Read more >
Jetpack Compose cant compile the app, could not find kotlin ...
Error message: e: This version (1.0.0-beta07) of the Compose Compiler requires Kotlin version 1.4.32 but you appear to be using Kotlin version ...
Read more >
Jetpack Compose with Kotlinx Serialization - Issue Tracker
Problem: When i use Kotlinx Serialization like in the EXAMPLE CODE below (without using Jetpack Compose) everything works perfectly. If i use Jetpack...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found