Removing logging with ProGuard doesn't remove the strings being logged [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Removing unused strings during ProGuard optimisation I have an Android application with dozens of logging statements. I'd prefer they wouldn't appear in the release version, so I used Proguard with something like this in the proguard.cfg file: -assumenosideeffects class android.util.Log { public static *** d(...); } But the problem is that there are a lot of Log.d("something is " + something) , and although the