Oldest Android OS Compatible with Krypton 17.1?

Hi,

I’m looking to purchase a couple of cheap android tv boxes and was wondering can anyone please tell me what is the oldest version of Android OS that is compatible with Kodi 17.1?

Thanks in advance!