You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried to use the plugin with the proguard option '-keepkotlinmetadata' and got this exception:
[proguard] Exception in thread "main" java.lang.NoClassDefFoundError: kotlinx/metadata/jvm/KmModuleVisitor
[proguard] at proguard.resources.kotlinmodule.io.KotlinModuleDataEntryReader.read(KotlinModuleDataEntryReader.java:49)
[proguard] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:85)
[proguard] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:85)
[proguard] at proguard.io.RenamedDataEntryReader.read(RenamedDataEntryReader.java:97)
[proguard] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:85)
[proguard] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:85)
[proguard] at proguard.io.JarReader.read(JarReader.java:84)
[proguard] at proguard.io.DirectorySource.readFiles(DirectorySource.java:68)
[proguard] at proguard.io.DirectorySource.pumpDataEntries(DirectorySource.java:54)
[proguard] at proguard.InputReader.readInput(InputReader.java:262)
[proguard] at proguard.InputReader.readInput(InputReader.java:230)
[proguard] at proguard.InputReader.readInput(InputReader.java:207)
[proguard] at proguard.InputReader.execute(InputReader.java:135)
[proguard] at proguard.ProGuard.readInput(ProGuard.java:283)
[proguard] at proguard.ProGuard.execute(ProGuard.java:108)
[proguard] at proguard.ProGuard.main(ProGuard.java:677)
[proguard] Caused by: java.lang.ClassNotFoundException: kotlinx.metadata.jvm.KmModuleVisitor
[proguard] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
[proguard] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
[proguard] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
It seems that proguard's kotlin library dependencies are missing from the classpath.
According to proguard-core's gradle file, they should be:
Hi,
I tried to use the plugin with the proguard option '-keepkotlinmetadata' and got this exception:
It seems that proguard's kotlin library dependencies are missing from the classpath.
According to proguard-core's gradle file, they should be:
with these versions:
kotlinVersion = 1.3.31
kotlinxMetadataVersion = 0.1.0
Here is an example config: proguard_plugin_bug.tar.gz
To reproduce, just run mvn install
I'll be glad for a solution or a workaround.
Thanks!
Adi
The text was updated successfully, but these errors were encountered: