There are two solutions: 1. We switch [back](https://github.com/bbottema/simple-java-mail/pull/343) to numbered groups: meh 2. We use the micro library [named-regexp](https://github.com/tony19/named-regexp) instead (10kb), which adds named groups support for Android: yay