Not sure if relevant after all this time but I have found that setting "R8 code shrinker" under the Android settings for the project will produce a mapping.txt file. May help somebody :)