You may need to specify additional library jars (using '-libraryjars').

1,277 views
Skip to first unread message

Javier Hdez

unread,
Jun 5, 2012, 4:51:52 PM6/5/12
to pyx4me...@googlegroups.com
Hello,

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)


What am I doing wrong?

Thanks,

Best regards


Javier Hdez

unread,
Jun 5, 2012, 5:27:15 PM6/5/12
to pyx4me...@googlegroups.com
Sorry, Proguard version is 4.8
Reply all
Reply to author
Forward
0 new messages