from above answer 1 correction add $* to solve this issue else unresolved class name issue will be happened
-dontwarn android.media.LoudnessCodecController$OnLoudnessCodecUpdateListener$* -dontwarn android.media.LoudnessCodecController$*