I am using android studio to build debug and release application. When i build debug/release application
./gradlew assembleDebug ./gradlew assembleRelease <
Put the -dontwarn lines in the proguard-rules.pro or proguard-rules.txt file.
Had to google this elsewhere since none of the answers included this info. Check the other answers for the specific lines you need for your case.