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

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

B4X:
B4A Version: 9.30 BETA #4
Java Version: 8
Parsing code.    (0.02s)
Building folders structure.    (0.04s)
Compiling code.    (0.23s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    Error
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 '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
 

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.

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 'background' with value '@color/bt_blue').
The Color bt_blue is defined in the drop-in-4.2.0.aar

Have you added a reference to this AAR?
B4X:
#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.
 

Attachments

Top