'프로가드'에 해당되는 글 1건

최초 작성일 : 2012/02/13 09:32 


그동안 프로가드를 이용하여 난독화를 진행해왔는데 최근 신규 라이브러리를

추가하면서 아래와 같은 에러가 발생하였다.

[2012-02-13 09:27:14 - IBKLauncher_Dev] Proguard returned with error code 1. See console

[2012-02-13 09:27:14 - IBKLauncher_Dev] Note: there were 993 duplicate class definitions.

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.SocksEcho: can't find superclass or interface java.awt.Frame

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.SocksEcho: can't find superclass or interface java.awt.event.ActionListener

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.SocksEcho: can't find superclass or interface java.awt.event.WindowListener

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.SocksDialog: can't find superclass or interface java.awt.Dialog

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.SocksDialog: can't find superclass or interface java.awt.event.WindowListener

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.SocksDialog: can't find superclass or interface java.awt.event.ItemListener

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.SocksDialog: can't find superclass or interface java.awt.event.ActionListener

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.UDPRelayServer: can't find referenced class org.apache.log4j.Logger

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.UDPRelayServer: can't find referenced class org.apache.log4j.Logger

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.UDPRelayServer: can't find referenced class org.apache.log4j.Logger

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.UDPRelayServer: can't find referenced class org.apache.log4j.Logger

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.SocksEcho: can't find referenced class java.awt.Frame

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.SocksEcho: can't find referenced class java.awt.image.ImageProducer

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.SocksEcho: can't find referenced method 'java.awt.Image createImage(java.awt.image.ImageProducer)' in class net.sourceforge.jsocks.SocksEcho

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.SocksEcho: can't find referenced method 'void setIconImage(java.awt.Image)' in class net.sourceforge.jsocks.SocksEcho

.

.

.

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.ProxyServer: can't find referenced class org.apache.log4j.Logger

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.ProxyServer: can't find referenced class org.apache.commons.lang.RandomStringUtils

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: net.sourceforge.jsocks.socks.ProxyServer: can't find referenced class org.apache.log4j.Logger

[2012-02-13 09:27:14 - IBKLauncher_Dev]       You should check if you need to specify additional program jars.

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: there were 241 unresolved references to classes or interfaces.

[2012-02-13 09:27:14 - IBKLauncher_Dev]          You may need to specify additional library jars (using '-libraryjars'),

[2012-02-13 09:27:14 - IBKLauncher_Dev]          or perhaps the '-dontskipnonpubliclibraryclasses' option.

[2012-02-13 09:27:14 - IBKLauncher_Dev] Warning: there were 14 unresolved references to program class members.

[2012-02-13 09:27:14 - IBKLauncher_Dev]          Your input classes appear to be inconsistent.

[2012-02-13 09:27:14 - IBKLauncher_Dev]          You may need to recompile them and try again.

[2012-02-13 09:27:14 - IBKLauncher_Dev]          Alternatively, you may have to specify the options

[2012-02-13 09:27:14 - IBKLauncher_Dev]          '-dontskipnonpubliclibraryclasses' and/or

[2012-02-13 09:27:14 - IBKLauncher_Dev]          '-dontskipnonpubliclibraryclassmembers'.

[2012-02-13 09:27:14 - IBKLauncher_Dev] java.io.IOException: Please correct the above warnings first.

[2012-02-13 09:27:14 - IBKLauncher_Dev]  at proguard.Initializer.execute(Initializer.java:308)

[2012-02-13 09:27:14 - IBKLauncher_Dev]  at proguard.ProGuard.initialize(ProGuard.java:210)

[2012-02-13 09:27:14 - IBKLauncher_Dev]  at proguard.ProGuard.execute(ProGuard.java:85)

[2012-02-13 09:27:14 - IBKLauncher_Dev]  at proguard.ProGuard.main(ProGuard.java:499)


안드로이드 개발 경험이 일천한지라 무지 당황하였다.
답은 역시 구글링~
그러 문제가 발생한 패키지에 -dontwarn 옵션을 주면 해결되는 문제였다.

-dontwarn net.sourceforge.jsocks.**

어렵지 않게 해결되어 다행이다...ㅠ.ㅠ

블로그 이미지

마즈다

이제 반백이 되었지만 아직도 꿈을 좇고 있습니다. 그래서 그 꿈에 다가가기 위한 단편들을 하나 둘 씩 모아가고 있지요. 이 곳에 그 단편들이 모일 겁니다...^^

댓글을 달아 주세요