Looks like jar file for v.3.1.4
is broken, so I suggest you to download v.3.1.3
from here https://github.com/card-io/card.io-Android-SDK/archive/3.1.3.zip This version works fine for me:
CreditCard creditCard = new CreditCard();
CardType cardType = creditCard.getCardType();
cardType.imageBitmap(this);
By this
I've used Activity
class