android - samsung multiscreen Proguard conflict with exoplayer -


i want release app in proguard step face problem. generate warning when add lobmok ( or more specific when add samsung-multiscreen jar file) follows :

warning:com.google.android.exoplayer.mediacodecaudiotrackrenderer: can't find referenced class android.media.playbackparams warning:com.google.android.exoplayer.audio.audiotrack: can't find referenced class android.media.playbackparams warning:com.google.android.exoplayer.audio.audiotrack$audiotrackutil: can't find referenced class android.media.playbackparams warning:com.google.android.exoplayer.audio.audiotrack$audiotrackutilv23: can't find referenced class android.media.playbackparams warning:com.google.android.exoplayer.audio.audiotrack$audiotrackutilv23: can't find referenced method 'void setplaybackparams(android.media.playbackparams)' in library class android.media.audiotrack warning:com.google.android.exoplayer.audio.audiotrack$audiotrackutilv23: can't find referenced class android.media.playbackparams warning:com.google.android.exoplayer.chunk.videoformatselectorutil: can't find referenced method 'android.view.display$mode getmode()' in library class android.view.display warning:com.google.android.exoplayer.chunk.videoformatselectorutil: can't find referenced class android.view.display$mode

when add following line proguard-rules.pro of them disappeared when launch application crash.

-dontwarn lombok.** 

also try :

-keep class com.google.android.exoplayer.** { *; } 

i think raise due conflict between annotation used in exoplayer , multiscreen (lombok)

does knows how fix issue ?

finally fixed issue following proguard-rule:

-ignorewarnings -dontoptimize -dontobfuscate -dontskipnonpubliclibraryclasses  -ignorewarnings  -keep class com.samsung.** { *; } -dontwarn com.samsung.** -dontwarn com.samsung.multiscreen.buildconfig -dontwarn lombok.** 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -