The message is used elsewhere, so we use a String.format instead of Timber's formatting. Interestingly, after upgrading to Android Studio Arctic Fox (and consequently Android Gradle plugin 7.0.0/Java 11 JDK) we are getting Android lint errors from the above code:
Wrong argument count, format string Cannot create directory: %s requires 1 but format call supplies 0
For the moment, I've added an ignore to lint.xml to work around this.
We have the following code in our app (we're using Timber 4.7.1):
The
message
is used elsewhere, so we use aString.format
instead of Timber's formatting. Interestingly, after upgrading to Android Studio Arctic Fox (and consequently Android Gradle plugin 7.0.0/Java 11 JDK) we are getting Android lint errors from the above code:For the moment, I've added an
ignore
tolint.xml
to work around this.