Removing unused strings during ProGuard optimisation
ProGuard can remove simple constant arguments (Strings, integers, etc). So in this case, the code and the string constant should disappear completely: Log.d(“This is a debug statement”); However, you may have observed the issue with some code like this: Log.d(“The answer is “+answer); After compilation, this actually corresponds to: Log.d(new StringBuilder().append(“The answer is “).append(answer).toString()); ProGuard … Read more