dbachelder / CreditCardEntry

Smooth UI for Credit Card Entry on Android device, regex check for supported credit card types and luhn check. Inspired by Square credit card entry interface
MIT License
503 stars 166 forks source link

Build fails with `invalid color` on Android Studio 3.0 #56

Open mwajeeh opened 7 years ago

mwajeeh commented 7 years ago

Project contains <item name="null_color" type="color">234234</item> which causes build to fail on Android Studio 3.0 with

Error: invalid color

mwajeeh commented 6 years ago

Only way to make this project compile is to add following lines to your own project which will override this libs resources which are causing compilation errors:

    <item name="null_color" type="color">#00000000</item>
    <item name="cc_card" type="id"/>
    <item name="cc_ccv" type="id"/>
    <item name="cc_entry" type="id"/>
    <item name="cc_entry_internal" type="id"/>
    <item name="cc_exp" type="id"/>
    <item name="cc_form_layout" type="id"/>
    <item name="cc_zip" type="id"/>
    <item name="text_helper" type="id"/>

Make sure to use com.devmarvel.creditcardentry.R.id.cc_card etc wherever required