views:

280

answers:

1

I am getting the following error while obfuscating my application. How can i define the output jar in my build.xml?

 [java] Shrinking...
 [java] java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
 [java]     at proguard.shrink.Shrinker.execute(Shrinker.java:148)
 [java]     at proguard.ProGuard.shrink(ProGuard.java:294)
 [java]     at proguard.ProGuard.execute(ProGuard.java:100)
 [java]     at proguard.ProGuard.main(ProGuard.java:499)
+1  A: 

The tutorial here has never gone wrong for me.

GJTorikian
I have tried it, it doesn't work:BUILD FAILED/Users/aryan/Desktop/MyApp/build.xml:49: taskdef class com.android.ant.SetupTask cannot be found
aryaxt
thanks, i finally figured out what the problem was.I specified the sdk location manually instead of reading from local.properties <property name="sdk.dir" value="/Platforms/android.platform" />
aryaxt