korlibs / korlibs/korge-hello-world-client-server

runAndroidDeviceRelease crashes with : R8: Type KR is defined

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

runAndroidDeviceRelease

> Task :client:minifyReleaseWithR8 FAILED
ERROR:D:\Kotlin_Lab\RaptorianIDE\shared\build\intermediates\runtime_library_classes_jar\release\classes.jar: R8: Type KR is defined multiple times: D:\Kotlin_Lab\RaptorianIDE\shared\build\intermediates\runtime_library_classes_jar\release\classes.jar:KR.class, D:\Kotlin_Lab\RaptorianIDE\client\build\tmp\kotlin-classes\release\KR.class
w: Detected multiple Kotlin daemon sessions at kotlin\sessions
142 actionable tasks: 140 executed, 2 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':client:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
> Compilation failed to complete, origin: D:\Kotlin_Lab\RaptorianIDE\shared\build\intermediates\runtime_library_classes_jar\release\classes.jar:KR.class

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 36s
![photo_2023-12-28_17-46-00](https://github.com/korlibs/korge-hello-world-client-server/assets/155072530/b5a11fa9-5c8b-42e9-a9f1-46f9aade1025)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing runAndroidDeviceRelease and inspect the :client:minifyReleaseWithR8 failure, focusing on the duplicate KR.class entries under shared/build/intermediates/runtime_library_classes_jar/release and client/build/tmp/kotlin-classes/release. Done means the release task completes without R8 reporting Type KR as defined multiple times.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.