본문 바로가기
  • SDXL 1.0 + 한복 LoRA
  • SDXL 1.0 + 한복 LoRA
Development/Android

[옛 글] [Android] Proguard를 사용하여 난독화 진행서 오류 해결

by 마즈다 2013. 7. 19.
반응형

최초 작성일 : 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.**

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

반응형