Android Question No resource found that matches the given name ...

Discussion in 'Android Questions' started by somed3v3loper, Jul 6, 2019.

  1. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    I am not sure whether this should be asked here or in the libraries questions section but as the library is compiled ok , I think it should be asked here .

    I am trying to wrap Braintree Drop-In but when trying to compile the sample , I get this problem

    B4A Version: 9.30 BETA #4
    Java Version: 
    Parsing code.    (
    Building folders structure.    (
    Compiling code.    (
    Compiling layouts code.    (
    Organizing libraries.    (
        (AndroidX SDK)
    Generating R 
    file.    Error
    in-4.2.0-63697882483523\res\layout\bt_animated_button_view.xml:9: error: Error: No resource found that matches the given name (at 'background' with value '@color/bt_blue').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_animated_button_view.xml:9: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/bt_white').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_enrollment_card.xml:6: error: Error: No resource found that matches the given name (at 'style' with value '@style/bt_field_container').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_enrollment_card.xml:9: error: Error: No resource found that matches the given name (at 'style' with value '@style/bt_card_form_icon').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_enrollment_card.xml:14: error: Error: No resource found that matches the given name (at 'style' with value '@style/bt_text_input_layout').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_enrollment_card.xml:14: error: Error: No resource found that matches the given name (at 'paddingLeft' with value '@dimen/bt_edit_text_icon_padding').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_enrollment_card.xml:14: error: Error: No resource found that matches the given name (at 'paddingStart' with value '@dimen/bt_edit_text_icon_padding').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_enrollment_card.xml:22: error: Error: No resource found that matches the given name (at 'style' with value '@style/bt_card_form_field').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_payment_method_list_item.xml:21: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/bt_black').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_section_divider.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@color/bt_black_12').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_vault_manager_list_item.xml:39: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/bt_black_54').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_vaulted_payment_method_card.xml:2: error: No resource identifier found for attribute 'cardBackgroundColor' in package 'mm.dropin'
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_vaulted_payment_method_card.xml:2: error: No resource identifier found for attribute 'cardCornerRadius' in package 'mm.dropin'
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_vaulted_payment_method_card.xml:2: error: No resource identifier found for attribute 'cardElevation' in package 'mm.dropin'
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_vaulted_payment_method_card.xml:2: error: No resource identifier found for attribute 'cardPreventCornerOverlap' in package 'mm.dropin'
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_vaulted_payment_method_card.xml:2: error: No resource identifier found for attribute 'cardUseCompatPadding' in package 'mm.dropin'
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\layout\bt_vaulted_payment_method_card.xml:33: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/bt_black_54').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\drawable\bt_list_view_divider.xml:5: error: Error: No resource found that matches the given name (at 'color' with value '@color/bt_black_12').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\drawable\bt_payment_button_background.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@color/bt_white').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\drawable-v21\bt_payment_method_list_item_bg.xml:2: error: Error: No resource found that matches the given name (at 'color' with value '@color/bt_black_12').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\drawable\bt_submit_button_background.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@color/bt_blue').
    D:\androidzdk\tools\..\extras\b4a_local\unpacked-drop-in-4.2.0-63697882483523\res\menu\bt_card_io.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/bt_ic_camera_dark').
    I am now using AndroidX but got the same error before upgrading
  2. Erel

    Erel Administrator Staff Member Licensed User

    You are probably missing a reference to an AAR file or resources folder.
    somed3v3loper likes this.
  3. DonManfred

    DonManfred Expert Licensed User

    Can you post a link to the Github project?
  4. DonManfred

    DonManfred Expert Licensed User

    I was expecting you are talking about PayPal Braintree.
    I did search for the needed mavens and had a quick look.

    The Color bt_blue is defined in the drop-in-4.2.0.aar

    Have you added a reference to this AAR?
    #additionaljar:  drop-in-4.2.0.aar
    Also note that this aar adds some Activities which you probably need to add in your Manifest to get them work.

    Attached Files:

    somed3v3loper and Erel like this.
  5. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    I am referencing dropin aar
    I will try to add the activities and check again
  6. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    That was it
    It depended on
    api 'com.braintreepayments.api:braintree:3.0.0'
    api 'com.braintreepayments:card-form:4.2.0'
    sorry for stupid mistake :D
    DonManfred likes this.
  7. mcqueccu

    mcqueccu Active Member Licensed User

    Hi @somed3v3loper Were you able to finish wrapping the Braintree drop-in sdk?
  8. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    Sorry no
    It might be possible to wrap but I just did not give it the required time
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice