Hello here is my problem. I make a new libgdx project with MOE plugin 1.1. and change libgdx version to 1.9.5-SNAPSHOT but have a problem with Dex2Oat. Then I add
moe {
proguardLevel ‘all’
}
and my build again Faild, something wrong with ProGuard. I thing my problem in 2 external libraries Json and socket.io. Maybe I add them incorrect. What should I Do? sorry for my english)) Here is my Error:
> Copying resources from program jar [/****/****/.gradle/caches/modules-2/files-2.1/org.json/json/20160810/***********/json-20160810.jar] (filtered)
> Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [json-20160810.jar:META-INF/MANIFEST.MF])
> java.io.IOException: Can't write [/****/****/****/****/****/ios-moe/build/moe/main/proguard/output.jar] (Can't read [/****/****/.gradle/caches/modules-2/files-2.1/org.json/json/20160810/***********/json-20160810.jar(;;;;;;!**.framework/**,!**.bundle/**)] (Duplicate zip entry [json-20160810.jar:org/json/JSONArray.class]))
> at proguard.OutputWriter.writeOutput(OutputWriter.java:187)
> at proguard.OutputWriter.execute(OutputWriter.java:79)
> at proguard.ProGuard.writeOutput(ProGuard.java:427)
> at proguard.ProGuard.execute(ProGuard.java:175)
> at proguard.ProGuard.main(ProGuard.java:538)
> Caused by: java.io.IOException: Can't read [/****/****/.gradle/caches/modules-2/files-2.1/org.json/json/20160810/***********/json-20160810.jar(;;;;;;!**.framework/**,!**.bundle/**)] (Duplicate zip entry [json-20160810.jar:org/json/JSONArray.class])
> at proguard.InputReader.readInput(InputReader.java:188)
> at proguard.InputReader.readInput(InputReader.java:158)
> at proguard.OutputWriter.writeOutput(OutputWriter.java:176)
> ... 4 more
> Caused by: java.io.IOException: Duplicate zip entry [json-20160810.jar:org/json/JSONArray.class]
> at proguard.io.JarWriter.getOutputStream(JarWriter.java:138)
> at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:106)
> at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:106)
> at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:92)
> at proguard.io.ClassRewriter.read(ClassRewriter.java:68)
> at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
> at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
> at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
> at proguard.io.JarReader.read(JarReader.java:65)
> at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65)
> at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53)
> at proguard.InputReader.readInput(InputReader.java:184)
> ... 6 more
> FAILED
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':ios-moe:moeMainProGuard'.
> > Task failed, you can find the log file here: /****/****/****/****/****/ios-moe/build/moe/main/proguard/ProGuard.log
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.`Preformatted text`