Has anyone faced this issue before? The problem oc...
# multiplatform
m
Has anyone faced this issue before? The problem occours when loading any string from
getString()
or
stringResource
. I am normally using strings in a strings.xml file. The error only happens on iOS system.
Copy code
kotlin.IllegalArgumentException: The padding option is set to PRESENT, but the input is not properly padded
at 0   Estudia.debug.dylib                 0x10a99d1f6        kfun:kotlin.io.encoding.Base64#decode$default(kotlin.CharSequence;kotlin.Int;kotlin.Int;kotlin.Int){}kotlin.ByteArray + 3686 
    at 1   Estudia.debug.dylib                 0x10b99d898        kfun:org.jetbrains.compose.resources.getStringItem$2.$invokeCOROUTINE$0.invokeSuspend#internal + 5336
I solved by removing the xml header:
Copy code
<?xml version="1.0" encoding="utf-8"?>
Anyway, pretty sure it's IDE bug.