MOE 1.3.4 moeMainProGuard task fails in Android Studio

So I think I see the problem for this one but I don’t think it’s something fixable on my side of things. I just build my app that was building fine with MOE 1.3.3 but the moeMainProGuard task fails with the following error:

ProGuard, version 5.2.1
java.io.IOException: The same input jar [/Users/myname/.moe/moe-sdk-1.3.4/tools/java8support.jar] is specified twice.
at proguard.ConfigurationChecker.checkConflicts(ConfigurationChecker.java:216)
at proguard.ConfigurationChecker.check(ConfigurationChecker.java:83)
at proguard.ProGuard.execute(ProGuard.java:73)
at proguard.ProGuard.main(ProGuard.java:538)

Looking in configuration.pro reveals that there is both an -injars and -libraryjars entry for this jar. Specifically I have

-injars /Users/myname/.moe/moe-sdk-1.3.4/tools/java8support.jar(!**.framework/**,!**.bundle/**)

and

-libraryjars /Users/myname/.moe/moe-sdk-1.3.4/tools/java8support.jar

When I downgrade to MOE 1.3.3 there’s only a -libraryjars entry for it and the app works fine. So whatever generates the base configuration.pro file seems to be what’s causing it. Is there any way for me to fix this or just wait for a patch? Any way to cancel the entry out using the proguard.append.cfg file?

Hi,

I just pushed a hotfix for this as moe-gradle 1.3.5.

Only the Gradle plugin is updated, you can force it using ./gradlew --refresh-dependencies

Best Regards,
Gergely

2 Likes

Thanks Gergely that was super fast! Great product and great service!

1 Like

Yes, Great product and great service! Great team!