hey, does someone got ever into this error while t...
# korge
p
hey, does someone got ever into this error while trying to execute runAndroidDebug task ?
Copy code
Caused by: org.gradle.tooling.BuildException: Failed to process /home/paul/devel/projects/tool_framework_multi_platform/build/platforms/android/build/tmp/kotlin-classes/debug

Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.

Caused by: java.lang.UnsupportedOperationException
d
Uhm. Don't remember that one. There are more details on the exception? Like --stacktrace?
p
let me check by running in the terminal instead of intellij
d
Okay
./gradlew runAndroidDebug --stacktrace
p
๐Ÿ‘
weird! it worked fine from the terminal...
gradle version issue mabye ?
d
yeah, that's why I usually use terminal for running gradle except when trying to debug
p
๐Ÿคฆโ€โ™‚๏ธ
sorry bout that
d
not sure if the java version or something
but something is wrong
you can try to change the gradle version, maybe it works?
would be nice to know why that happens
p
ok, digging into it now
let you know in a while
d
@RezMike do you know why this might happen?
okay
p
i have the fullstack here... looks like something related to R8
r
yep, the important lines are:
Copy code
Caused by: java.lang.UnsupportedOperationException
	at com.android.tools.r8.s.a.a.b.Q.removeIf(:1)
	at com.android.tools.r8.ir.regalloc.LinearScanRegisterAllocator.a(:71)
	at com.android.tools.r8.ir.regalloc.LinearScanRegisterAllocator.b(:128)
maybe you should update version of android gradle plugin or something related?
p
i'm running this in intellij in a korge's project
what about doing that in korge's generated android project?
r
I don't know, haven't used korge for android target enough yet
p
you should, android is the best platform ever made by the human being ๐Ÿ˜„
r
I suppose it's sarcasm
p
i suppose you are right ๐Ÿ˜„ jajajaja
just joking, relax
most of the times android is a pain in the arse
r
I understand, I am android developer myself with ~5 years experience ๐Ÿ™‚
p
you know what i'm talking about then ๐Ÿ˜„
๐Ÿ˜„ 1
๐Ÿ‘Œ 1