I am following the correct answer from here: Remove diacritical marks (ń ǹ ň ñ ṅ ņ ṇ ṋ ṉ ̈ ɲ ƞ ᶇ ɳ ȵ) from Unicode chars to ,as you may expect, normalize some Strings.
It works great against local unit test, but when I try to use it on the emulator I get:
Caused by: java.util.regex.PatternSyntaxException: U_ILLEGAL_ARGUMENT_ERROR
[\p{InCombiningDiacriticalMarks}\p{IsLm}\p{IsSk}]+
at java.util.regex.Pattern.compileImpl(Native Method)
at java.util.regex.Pattern.compile(Pattern.java:1340)
at java.util.regex.Pattern.<init>(Pattern.java:1324)
at java.util.regex.Pattern.compile(Pattern.java:946)
at com.listonic.util.TextNormalizationUtilsKt.<clinit>(TextNormalizationUtils.kt:37)
... 7 more
Any ideas what is wrong?