I have 5 libraries in my android project.
I have this in my proguard-android.txt file:
-libraryjars /root/workspace/Application/libs/lib_name_00.jar
-libraryjars /root/workspace/Application/libs/lib_name_01.jar
-libraryjars /root/workspace/Application/libs/lib_name_02.jar
-libraryjars /root/workspace/Application/libs/lib_name_03.jar
-libraryjars /root/workspace/Application/libs/lib_name_04.jar
-dontwarn org.apache.harmony.awt*
-dontnote org.apache.harmony.awt*
I have Oracle JDK 7 + ADT 18 + Eclipse 4 on Ubuntu 12.04 and when I export the application throws this exception:
[2012-06-05 21:42:22 - Application] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.SystemFlavorMap
[2012-06-05 21:42:22 - Application] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.DataFlavor
[2012-06-05 21:42:22 - Application] You should check if you need to specify additional program jars.
[2012-06-05 21:42:22 - Application] Warning: there were 299 unresolved references to classes or interfaces.
[2012-06-05 21:42:22 - Application] You may need to specify additional library jars (using '-libraryjars').
[2012-06-05 21:42:22 - Application] Warning: there were 4 unresolved references to program class members.
[2012-06-05 21:42:22 - Application] Your input classes appear to be inconsistent.
[2012-06-05 21:42:22 - Application] You may need to recompile them and try again.
[2012-06-05 21:42:22 - Application] Alternatively, you may have to specify the option
[2012-06-05 21:42:22 - Application] '-dontskipnonpubliclibraryclassmembers'.
[2012-06-05 21:42:22 - Application] java.io.IOException: Please correct the above warnings first.
[2012-06-05 21:42:22 - Application] at proguard.Initializer.execute(Initializer.java:321)
[2012-06-05 21:42:22 - Application] at proguard.ProGuard.initialize(ProGuard.java:211)
[2012-06-05 21:42:22 - Application] at proguard.ProGuard.execute(ProGuard.java:86)
[2012-06-05 21:42:22 - Application] at proguard.ProGuard.main(ProGuard.java:492)