was successfully running before upgrading to Android 10. Now it throws an error:
Wrapped java.lang.IllegalArgumentException: Invalid ID, must be in the range [0..16)
(Looks like the error message is trimmed)
I've read that starting API 29, setColor also accepts long color values, I tried explicitly putting
but none of them worked...
Any solutions in how to use setColor? ARGB doesn't always work for me (e.g. cannot create gradient by specifying ARGB).
You can fix this with a cast:
...although I'm unable to reproduce this behavior on my own machine... 0xFFFFFFFF is always interpreted as an
int (even though it's out of range, strictly speaking). Not sure why your compiler is choosing the
User contributions licensed under CC BY-SA 3.0