Hi guys just recently started getting into Android development. I feel this is a very stupid question but I’ll shoot anyway since I’ve spent an hour on this already. I am currently trying to run a project on my device, with no changes to what Android Studio gave me. I think this image should describe my problem better:
When running I get
I can’t understand why they are not compatible. Rather, why does
minSdk say API 20 when
minSdkVersion on build.gradle says 15? I’ve tried adding
uses-sdk on manifest.xml but I figured that would be unnecessary since my build.gradle file will overwrite that (it didn’t work also).
Am I missing some kind of setting here?
For some reason, using ‘L’ as the
targetSdkVersion makes it so the
minSdkVersion is ignored. You should set the
targetSdkVersion to something other than
It’s not a bug. It’s a feature :).
If you compile against a preview platform, you can only run on a
You should set
compileSdkVersion to API
You can read more about this problem here: