Android 난독화 Proguard 적용시 줄바꿈 오류

in #proguard6 years ago

첫글이라 무성의하게 씀.

어제 황당한 상황을 겪음.

Proguard 적용후 앱실행시 Unknown Object 얼씨구 절씨구 오류로 강제 종료

-keep class 클래스
-keep interface 인터페이스
-dontwarn
-keepclassmembers

등등 다 적용해 보았으나 해결안됨.

하지만 ....

Jsoup 라이브러리 사용중에 IDE 가 임의로 자동 줄바꿈 한 코드라인이 있었음

Jsoup.parse(response).select("div[itemprop=softwareVersion]")
.first().ownText();

예시를 들자면 위 처럼..

해당 부분을 한 라인으로 바꾸니 해결이 되었음.

난독화 과정에서 두부분을 다른 라인으로 분리 해버린가 아닌가..

혹시라도 아무리 생각해도 문제가 없는 코드가 난독화에서 죽으면 해당 상황도 체크 추천.

Sort:  

Congratulations @hanyoon! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!

Coin Marketplace

STEEM 0.19
TRX 0.14
JST 0.030
BTC 60189.57
ETH 3204.49
USDT 1.00
SBD 2.44