I\'m using the leanback libraries, which require Android 17 or later. However my app supports a minSDK of 16, so I get a build error from gradle saying
Erro
it doesn't matter that you declare your minSdk in build.gradle. You have to copy overrideLibrary in your AndroidManifest.xml, as documented here.
overrideLibrary
AndroidManifest.xml
...
The system automatically ignores the sdkVersion declared in AndroidManifest.xml.
I hope this solve your problem.