Michael Paus
10/11/2024, 4:19 PMInconsistent stackmap frames at branch target 1938
Exception Details:
Location:
net/sf/geographiclib/Geodesic.InverseInt(DDDDI)Lnet/sf/geographiclib/Geodesic$InverseData; @1938: iconst_0
Reason:
Type top (current frame, locals[67]) is not assignable to double (stack map, locals[67])
...
More details in the thread.Michael Paus
10/11/2024, 4:26 PMChrimaeon
10/11/2024, 4:39 PMnet/sf/geographiclib/Geodesic.InverseInt(DDDDI)
look like?
seems like there is a 0
(iconst_0) on top of the stack but a double
is expected.Michael Paus
10/11/2024, 4:43 PMChrimaeon
10/11/2024, 4:44 PMMichael Paus
10/11/2024, 4:44 PMbuildTypes.release {
proguard {
version.set("7.6.0")
isEnabled.set(true)
optimize.set(false)
obfuscate.set(false)
configurationFiles.from(project.file("compose-desktop.pro"))
}
}
Chrimaeon
10/11/2024, 4:49 PMoptimize.set(false)
but there are options for proguard that could affect you.
see https://www.guardsquare.com/manual/configuration/optimizations
• code/merging
• code/simplification/*
esp. code/simplification/math
Chrimaeon
10/11/2024, 4:50 PM.pro
file. also not sure if applying a configurations file will override your optimize.set(false)
and obfuscate.set(false)
Michael Paus
10/11/2024, 4:50 PMChrimaeon
10/11/2024, 4:51 PMalso not sure if applying a configurations file will override your🤷andoptimize.set(false)
obfuscate.set(false)
Michael Paus
10/11/2024, 4:52 PMChrimaeon
10/11/2024, 4:54 PMChrimaeon
10/11/2024, 4:55 PMjar
?Michael Paus
10/11/2024, 4:58 PMChrimaeon
10/11/2024, 5:01 PMMichael Paus
10/12/2024, 11:15 AMChrimaeon
10/12/2024, 12:41 PMMichael Paus
10/12/2024, 2:18 PMChrimaeon
10/12/2024, 2:21 PMPHondogo
10/13/2024, 6:04 AMMichael Paus
10/13/2024, 10:19 AMPHondogo
10/13/2024, 11:49 AMproject.tasks.register("<task name>", JavaExec::class.java) {
val singleJarFile = singleJarTask.get().archiveFile // getting jar from FatJar output
val outFile: RegularFile = <here specify location of resulting jar file>
inputs.file(singleJarFile)
outputs.file(outFile)
classpath(r8Config) // as classpath you need to provide configuration where R8 jar is located. You can create new Configuration and add dependency of "com.android.tools:r8:<r8 version>" there
mainClass.set("com.android.tools.r8.R8")
//
args(
"--release",
"--classfile",
"--output", outFile.asFile.absolutePath,
"--lib", javaLauncher.get().metadata.installationPath,
singleJarFile.get().asFile.absolutePath
)
}
PHondogo
10/13/2024, 11:54 AM