This weird logcat messages started when I switched to supportLibrary 28, not happens on 27.1.1. I tried with an empty default project and the result exactly the same.
This happens when using a class that is not compatible with your minimum sdk version. The code compiles because it leaves it up to you for deployment. Try using a higher min sdk version to verify this.