Android Question FirebaseUI Example compiler error

toby

Well-Known Member
Licensed User
Longtime User
I got the following compiler errors while trying to run the example as it is in debug mode:
B4X:
B4A Version: 7.80
Parsing code.    (0.00s)
Compiling code.    (0.34s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
Generating R file.    Error
..\res.firebaseui\values\attrs.xml:5: error: Attribute "spacingProportion" has already been defined
..\res.firebaseui\values\attrs.xml:9: error: Attribute "drawableStartCompat" has already been defined
..\res.firebaseui\values\attrs.xml:10: error: Attribute "drawableEndCompat" has already been defined
..\res.firebaseui\values\attrs.xml:11: error: Attribute "drawableTopCompat" has already been defined
..\res.firebaseui\values\attrs.xml:12: error: Attribute "drawableBottomCompat" has already been defined
..\res.firebaseui\values-v26\styles.xml:7: error: Error: No resource found that matches the given name: attr 'android:autofillHints'.
..\res.firebaseui\values-v26\styles.xml:12: error: Error: No resource found that matches the given name: attr 'android:autofillHints'.
..\res.firebaseui\values-v26\styles.xml:26: error: Error: No resource found that matches the given name: attr 'android:autofillHints'.
..\res.firebaseui\values-v26\styles.xml:17: error: Error: No resource found that matches the given name: attr 'android:autofillHints'.
E:\Data\b4a\examples\firebaseUI\FirebaseUIEx\FirebaseUI\Objects\bin\extra\res1\res\values\values.xml:118: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.DayNight.DarkActionBar'.
..\res.firebaseui\values\styles.xml:9: error: Error: No resource found that matches the given name: attr 'colorAccent'.
..\res.firebaseui\values\styles.xml:7: error: Error: No resource found that matches the given name: attr 'colorPrimary'.
..\res.firebaseui\values\styles.xml:8: error: Error: No resource found that matches the given name: attr 'colorPrimaryDark'.
E:\Data\b4a\examples\firebaseUI\FirebaseUIEx\FirebaseUI\Objects\bin\extra\res1\res\values\values.xml:139: error: Error retrieving parent for item: No resource found that matches the given name '@style/Widget.AppCompat.Button.Colored'.
E:\Data\b4a\examples\firebaseUI\FirebaseUIEx\FirebaseUI\Objects\bin\extra\res1\res\values\values.xml:183: error: Error retrieving parent for item: No resource found that matches the given name '@style/Widget.AppCompat.Spinner.Underlined'.
E:\Data\b4a\examples\firebaseUI\FirebaseUIEx\FirebaseUI\Objects\bin\extra\res1\res\values\values.xml:284: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.Design.TextInputLayout'.

Could someone please tell me what went wrong?
 

DonManfred

Expert
Licensed User
Longtime User
Are you using android.jar from api 27?
Have you added AppCompat to your project? 3.52 is most up to date
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
Are you using android.jar from api 27?
Have you added AppCompat to your project? 3.52 is most up to date

Thanks to tips from DonManfred, I changed the api version of android.jar from 23 to 27, and added appcompat library (3.52) to the project. Now I have much less errors.

B4X:
B4A Version: 7.80
Parsing code.    (0.00s)
Compiling code.    (3.17s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (20.77s)
Generating R file.    Error
..\res.firebaseui\values\attrs.xml:5: error: Attribute "spacingProportion" has already been defined
..\res.firebaseui\values\attrs.xml:9: error: Attribute "drawableStartCompat" has already been defined
..\res.firebaseui\values\attrs.xml:10: error: Attribute "drawableEndCompat" has already been defined
..\res.firebaseui\values\attrs.xml:11: error: Attribute "drawableTopCompat" has already been defined
..\res.firebaseui\values\attrs.xml:12: error: Attribute "drawableBottomCompat" has already been defined
E:\Data\b4a\examples\firebaseUI\FirebaseUIEx\FirebaseUI\Objects\bin\extra\res1\res\values\values.xml:284: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.Design.TextInputLayout'.

I also got a warning message: Library "appcompat" not used, which seems weird to me. See attached screenshot.

By the way, I unzipped res.firebaseui zip file and placed it in the project's main folder. I want to be sure that this is the correct location. I had tried some other locations, which resulted in "..\res.firebaseui not found" error.

Could someone give me some hints, please?
 

Attachments

  • compiler errors.jpg
    compiler errors.jpg
    299.5 KB · Views: 407
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
yes

The reference is needed for the UI Part.
Try to remove (deactivate) the #additionalres line

Thank you again, DonManfred! there is just one single error remaining after I commented out the following line of code per your instructions.
B4X:
#AdditionalRes: ..\res.FirebaseUI

B4X:
B4A Version: 7.80.
Parsing code.    (0.01s)
Compiling code.    (2.13s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
Generating R file.    Error
E:\Data\b4a\examples\firebaseUI\FirebaseUIEx\FirebaseUI\Objects\bin\extra\res1\res\values\values.xml:284: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.Design.TextInputLayout'.

The content of values.xml mentioned in the above error message is
B4X:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:ns1="http://schemas.android.com/tools" xmlns:ns2="urn:oasis:names:tc:xliff:document:1.2">
    <color name="colorAccent" ns1:ignore="ResourceName">#FF4081</color>
    <color name="colorPrimary" ns1:ignore="ResourceName">#3F51B5</color>
    <color name="colorPrimaryDark" ns1:ignore="ResourceName">#303F9F</color>
    <color name="fui_bgEmail">#D0021B</color>
    <color name="fui_bgFacebook">#3B5998</color>
    <color name="fui_bgGoogle">#ffffff</color>
    <color name="fui_bgPhone">#43C5A5</color>
    <color name="fui_bgTwitter">#FF5BAAF4</color>
    <color name="fui_buttonShadow">#64BEBEBE</color>
    <color name="fui_errorColor">#DD2C00</color>
    <color name="fui_linkColor">#4285F4</color>
    <color name="fui_transparent">#00000000</color>
    <declare-styleable name="SpacedEditText"><attr format="float" name="spacingProportion"/></declare-styleable>
    <declare-styleable name="SupportVectorDrawablesButton"><attr format="reference" name="drawableStartCompat"/><attr format="reference" name="drawableEndCompat"/><attr format="reference" name="drawableTopCompat"/><attr format="reference" name="drawableBottomCompat"/></declare-styleable>
    <dimen name="fui_auth_method_button_drawablePadding">12dp</dimen>
    <dimen name="fui_auth_method_button_margin">4dp</dimen>
    <dimen name="fui_auth_method_button_width">208dp</dimen>
    <dimen name="fui_body_padding_bottom">12dp</dimen>
    <dimen name="fui_button_inset_bottom">3dp</dimen>
    <dimen name="fui_button_inset_left">1dp</dimen>
    <dimen name="fui_button_inset_right">2dp</dimen>
    <dimen name="fui_button_inset_top">0dp</dimen>
    <dimen name="fui_field_padding_vert">16dp</dimen>
    <dimen name="fui_heading_padding_bottom">12dp</dimen>
    <dimen name="fui_submit_button_margin_top">24dp</dimen>
    <dimen name="fui_wrapper_padding_horiz">16dp</dimen>
    <integer name="fui_min_password_length">6</integer>
    <plurals name="fui_error_weak_password" translation_description="Inline error for weak password">
        <item quantity="one" translation_description="Inline error for weak password">Password not strong enough. Use at least %1$d character and a mix of letters and numbers</item>
        <item quantity="other" translation_description="Inline error for weak password">Password not strong enough. Use at least %1$d characters and a mix of letters and numbers</item>
    </plurals>
    <string name="app_name" ns1:ignore="ResourceName" translatable="false">ui_flow</string>
    <string name="default_web_client_id" translatable="false">CHANGE-ME</string>
    <string name="facebook_application_id" translatable="false">CHANGE-ME</string>
    <string name="facebook_login_protocol_scheme" translatable="false">fbYOUR_APP_ID</string>
    <string name="fui_accessibility_logo" translation_description="Content description for app logo">App logo</string>
    <string name="fui_button_text_save" translation_description="Button text to save input form">Save</string>
    <string name="fui_button_text_send" translation_description="Button text to send recovery email">Send</string>
    <string name="fui_code_sent" translation_description="Progress dialog success transition once sms is sent">Code sent!</string>
    <string name="fui_confirm_recovery_body" translation_description="Alert dialog displayed after password recovery email is sent">Follow the instructions sent to %1$s to recover your password.</string>
    <string name="fui_continue_phone_login" translation_description="Button text to submit phone number and send sms">Continue</string>
    <string name="fui_create_account_preamble_pp_only" translation_description="Text shown when creating an account with only privacy policy">By tapping <ns2:g example="SAVE" id="btn" translation_description="">%1$s</ns2:g> you are indicating that you agree to the <ns2:g example="https://google.com/privacy" id="pp" translation_description="">%2$s</ns2:g>.</string>
    <string name="fui_create_account_preamble_tos_and_pp" translation_description="Text shown when creating an account with both terms of service and privacy policy.">By tapping <ns2:g example="SAVE" id="btn" translation_description="">%1$s</ns2:g> you are indicating that you agree to the <ns2:g example="https://google.com/terms" id="tos" translation_description="">%2$s</ns2:g> and the <ns2:g example="https://google.com/privacy" id="pp" translation_description="">%3$s</ns2:g>.</string>
    <string name="fui_create_account_preamble_tos_only" translation_description="Text shown when creating an account with only terms of service">By tapping <ns2:g example="SAVE" id="btn" translation_description="">%1$s</ns2:g> you are indicating that you agree to the <ns2:g example="https://google.com/terms" id="tos" translation_description="">%2$s</ns2:g>.</string>
    <string name="fui_default_toolbar_title" translatable="false">@string/app_name</string>
    <string name="fui_done" translation_description="Progress dialog success transition once sms is sent">Done</string>
    <string name="fui_email_account_creation_error" translation_description="Inline error for signup failure">Email account registration unsuccessful</string>
    <string name="fui_email_hint" translation_description="Hint in email input field">Email</string>
    <string name="fui_enter_confirmation_code" translation_description="Phone number verification code entry form title">Enter the 6-digit code we sent to</string>
    <string name="fui_error_email_does_not_exist" translation_description="Inline error when user attempt signin with invalid account">That email address doesn\'t match an existing account</string>
    <string name="fui_error_quota_exceeded" translation_description="Error message when the Firebase project&apos;s quota has been exceeded.">There was a problem verifying your phone number</string>
    <string name="fui_error_session_expired" translation_description="Error message when SMS confirmation code has expired.">This code is no longer valid</string>
    <string name="fui_error_too_many_attempts" translation_description="Error message when the phone number has been used too many times">This phone number has been used too many times</string>
    <string name="fui_error_user_collision" translation_description="Inline error when user signs up using an existing email account">An account already exists with that email address.</string>
    <string name="fui_general_error" translation_description="Toast text flashing general error">An error has occurred.</string>
    <string name="fui_idp_name_facebook">Facebook</string>
    <string name="fui_idp_name_google">Google</string>
    <string name="fui_idp_name_twitter">Twitter</string>
    <string name="fui_incorrect_code_dialog_body" translation_description="Inline error when incorrect sms verification code is being used to verify">Wrong code. Try again.</string>
    <string name="fui_incorrect_code_dialog_positive_button_text" translation_description="Text to dismiss error alert dialog">OK</string>
    <string name="fui_invalid_email_address" translation_description="Inline error for invalid email address">That email address isn\'t correct</string>
    <string name="fui_invalid_phone_number" translation_description="Inline error when phone number entered is invalid">Enter a valid phone number</string>
    <string name="fui_missing_email_address" translation_description="Inline error for empty email address in input field">Enter your email address to continue</string>
    <string name="fui_name_hint" translation_description="Hint for last name input field">First &amp; last name</string>
    <string name="fui_next_default" translation_description="Button text to continue">Next</string>
    <string name="fui_password_hint" translation_description="Hint for password input field">Password</string>
    <string name="fui_password_recovery_body" translation_description="Password recovery message body">Get instructions sent to this email that explain how to
        reset your password.</string>
    <string name="fui_phone_hint" translation_description="Hint for phone input field">Phone Number</string>
    <string name="fui_privacy_policy" translation_description="Link text to web url containing the app&apos;s privacy policy">Privacy Policy</string>
    <string name="fui_progress_dialog_checking_accounts" translation_description="Progress dialog text while checking for existing accounts">Checking for existing accounts…</string>
    <string name="fui_progress_dialog_loading" translation_description="Loading text in dialog">Loading…</string>
    <string name="fui_progress_dialog_sending" translation_description="Progress dialog while password recovery email is being sent">Sending…</string>
    <string name="fui_progress_dialog_signing_in" translation_description="Progress dialog text">Signing in…</string>
    <string name="fui_progress_dialog_signing_up" translation_description="Dialog text while waiting for server&apos;s signup response">Signing up…</string>
    <string name="fui_provider_name_email">Email</string>
    <string name="fui_provider_name_phone">Phone</string>
    <string name="fui_required_field" translation_description="Inline error for required field">You can\'t leave this empty.</string>
    <string name="fui_resend_code" translation_description="Link text to resend verification sms">Resend Code</string>
    <string name="fui_resend_code_in" translation_description="Countdown timer text that the user needs to wait for before attempting to resend verification sms">Resend code in 0:%02d</string>
    <string name="fui_resending" translation_description="Progress dialog text when user clicks on resend sms">Resending…</string>
    <string name="fui_retrieving_sms" translation_description="Progress dialog text when sms is being retrieved before auto-submit">Retrieving sms…</string>
    <string name="fui_sign_in_default" translation_description="Button text to sign in">Sign in</string>
    <string name="fui_sign_in_with_email" translation_description="Sign in button text">Sign in with email</string>
    <string name="fui_sign_in_with_facebook" translation_description="Sign in button text">Sign in with Facebook</string>
    <string name="fui_sign_in_with_google" translation_description="Sign in button text">Sign in with Google</string>
    <string name="fui_sign_in_with_phone" translation_description="Sign in button text">Sign in with phone</string>
    <string name="fui_sign_in_with_phone_number" translation_description="Label for phone number input form">Sign in with phone number</string>
    <string name="fui_sign_in_with_twitter" translation_description="Sign in button text">Sign in with Twitter</string>
    <string name="fui_signed_in_with_specific_account" translation_description="Post signin message showing method of authentication">Signed in as <ns2:g example="[email protected]" id="email_addr" translation_description="">%1$s</ns2:g></string>
    <string name="fui_sms_terms_of_service" translation_description="Fine print warning displayed below Verify Phone Number button">By tapping “%1$s”, an SMS may be sent. Message &amp; data rates may apply.</string>
    <string name="fui_terms_of_service" translation_description="Link text to web url containing the app&apos;s terms of service">Terms of Service</string>
    <string name="fui_title_confirm_recover_password" translation_description="Password recovery confirmation message">Check your email</string>
    <string name="fui_title_recover_password_activity" translation_description="Recover password screen title">Recover password</string>
    <string name="fui_title_register_email" translation_description="Title for signup form">Sign up</string>
    <string name="fui_title_welcome_back_idp_prompt" translatable="false">@string/fui_sign_in_default</string>
    <string name="fui_title_welcome_back_password_prompt" translatable="false">@string/fui_sign_in_default</string>
    <string name="fui_trouble_signing_in" translation_description="Link leading to forgot password flow">Trouble signing in?</string>
    <string name="fui_verified" translation_description="Progress dialog success transition when phone number was verified">Verified!</string>
    <string name="fui_verify_phone_number" translation_description="Button text to submit confirmation code and complete phone verification">Verify Phone Number</string>
    <string name="fui_verify_phone_number_title" translation_description="Phone number entry form title">Enter your phone number</string>
    <string name="fui_verify_your_phone_title" translation_description="Button text to complete phone number verification">Verify your phone number</string>
    <string name="fui_verifying" translation_description="Progress dialog text while phone number is being verified">Verifying…</string>
    <string name="fui_welcome_back_email_header" translation_description="Message for returning users">Welcome back!</string>
    <string name="fui_welcome_back_idp_header" translation_description="Inline subtitle to users whose signup was interrupted since an existing account was detected">You already have an account</string>
    <string name="fui_welcome_back_idp_prompt" translation_description="Message to users that need to signin using existing IDP accounts">
        You\'ve already used <ns2:g example="[email protected]" id="email_addr" translation_description="">%1$s</ns2:g>.
        Sign in with <ns2:g example="Google" id="provider_name" translation_description="">%2$s</ns2:g> to continue.
    </string>
    <string name="fui_welcome_back_password_prompt_body" translation_description="Message to users that need to signin using existing email accounts">
        You\'ve already used <ns2:g example="[email protected]" id="email_addr" translation_description="">%1$s</ns2:g>
        to sign in. Enter your password for that account.
    </string>
    <string name="twitter_consumer_key" translatable="false">CHANGE-ME</string>
    <string name="twitter_consumer_secret" translatable="false">CHANGE-ME</string>
    <style name="FirebaseUI" parent="Theme.AppCompat.DayNight.DarkActionBar">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="android:buttonStyle">@style/FirebaseUI.Button</item>
    </style>
    <style name="FirebaseUI.AuthMethodPicker"/>
    <style name="FirebaseUI.AuthMethodPicker.ButtonHolder">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:minWidth">@dimen/fui_auth_method_button_width</item>
        <item name="android:orientation">vertical</item>
        <item name="android:clipToPadding">false</item>
        <item name="android:paddingLeft">4dp</item>
        <item name="android:paddingRight">4dp</item>
    </style>
    <style name="FirebaseUI.AuthMethodPicker.Logo">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">0dp</item>
        <item name="android:contentDescription">@string/fui_accessibility_logo</item>
    </style>
    <style name="FirebaseUI.Button" parent="@style/Widget.AppCompat.Button.Colored">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_gravity">end</item>
    </style>
    <style name="FirebaseUI.Button.AccountChooser">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textAllCaps">false</item>
        <item name="android:drawablePadding">@dimen/fui_auth_method_button_drawablePadding</item>
        <item name="android:textStyle">bold</item>
        <item name="android:paddingLeft">12dp</item>
        <item name="android:paddingRight">12dp</item>
        <item name="android:layout_marginTop">@dimen/fui_auth_method_button_margin</item>
        <item name="android:layout_marginBottom">@dimen/fui_auth_method_button_margin</item>
        <item name="android:gravity">left|center_vertical</item>
        <item name="android:typeface">normal</item>
        <item name="android:foreground">?android:attr/selectableItemBackground</item>
    </style>
    <style name="FirebaseUI.Button.AccountChooser.EmailButton">
        <item name="drawableStartCompat">@drawable/fui_ic_mail_white_24dp</item>
        <item name="android:background">@drawable/fui_idp_button_background_email</item>
        <item name="android:textColor">#ffffff</item>
    </style>
    <style name="FirebaseUI.Button.AccountChooser.FacebookButton">
        <item name="drawableStartCompat">@drawable/fui_ic_facebook_white_22dp</item>
        <item name="android:background">@drawable/fui_idp_button_background_facebook</item>
        <item name="android:textColor">#FFFFFFFF</item>
    </style>
    <style name="FirebaseUI.Button.AccountChooser.GoogleButton">
        <item name="drawableStartCompat">@drawable/fui_ic_googleg_color_24dp</item>
        <item name="android:background">@drawable/fui_idp_button_background_google</item>
        <item name="android:textColor">#757575</item>
    </style>
    <style name="FirebaseUI.Button.AccountChooser.PhoneButton">
        <item name="drawableStartCompat">@drawable/fui_ic_phone_white_24dp</item>
        <item name="android:background">@drawable/fui_idp_button_background_phone</item>
        <item name="android:textColor">#ffffff</item>
    </style>
    <style name="FirebaseUI.Button.AccountChooser.TwitterButton">
        <item name="drawableStartCompat">@drawable/fui_ic_twitter_bird_white_24dp</item>
        <item name="android:background">@drawable/fui_idp_button_background_twitter</item>
        <item name="android:textColor">#FFFFFFFF</item>
    </style>
    <style name="FirebaseUI.CountrySpinner" parent="@style/Widget.AppCompat.Spinner.Underlined">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_gravity">left</item>
        <item name="android:paddingBottom">16dp</item>
        <item name="android:paddingTop">16dp</item>
        <item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
    </style>
    <style name="FirebaseUI.SMSTermsText" parent="FirebaseUI.Text.BodyText">
        <item name="android:layout_width">match_parent</item>
        <item name="android:textColor">?android:textColorTertiary</item>
    </style>
    <style name="FirebaseUI.Text">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:fontFamily">sans-serif</item>
    </style>
    <style name="FirebaseUI.Text.BodyText" parent="FirebaseUI.Text.T08">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:paddingBottom">@dimen/fui_body_padding_bottom</item>
    </style>
    <style name="FirebaseUI.Text.Heading" parent="FirebaseUI.Text.T07">
        <item name="android:paddingTop">0dp</item>
        <item name="android:paddingBottom">@dimen/fui_heading_padding_bottom</item>
    </style>
    <style name="FirebaseUI.Text.Link">
        <item name="android:textColor">@color/fui_linkColor</item>
    </style>
    <style name="FirebaseUI.Text.T01" ns1:ignore="UnusedResources">
        <item name="android:textSize">112sp</item>
    </style>
    <style name="FirebaseUI.Text.T02" ns1:ignore="UnusedResources">
        <item name="android:textSize">64sp</item>
    </style>
    <style name="FirebaseUI.Text.T03" ns1:ignore="UnusedResources">
        <item name="android:textSize">48sp</item>
    </style>
    <style name="FirebaseUI.Text.T04" ns1:ignore="UnusedResources">
        <item name="android:textSize">36sp</item>
        <item name="android:lineSpacingExtra">12sp</item>
    </style>
    <style name="FirebaseUI.Text.T05" ns1:ignore="UnusedResources">
        <item name="android:textSize">24sp</item>
        <item name="android:lineSpacingExtra">8sp</item>
    </style>
    <style name="FirebaseUI.Text.T06" ns1:ignore="UnusedResources">
        <item name="android:textSize">18sp</item>
        <item name="android:lineSpacingExtra">6sp</item>
    </style>
    <style name="FirebaseUI.Text.T07" ns1:ignore="UnusedResources">
        <item name="android:textSize">20sp</item>
        <item name="android:lineSpacingExtra">4sp</item>
        <item name="android:textStyle">bold</item>
    </style>
    <style name="FirebaseUI.Text.T08" ns1:ignore="UnusedResources">
        <item name="android:textSize">16sp</item>
        <item name="android:lineSpacingExtra">8sp</item>
    </style>
    <style name="FirebaseUI.Text.T09" ns1:ignore="UnusedResources">
        <item name="android:textSize">16sp</item>
        <item name="android:lineSpacingExtra">4sp</item>
        <item name="android:textStyle">bold</item>
    </style>
    <style name="FirebaseUI.Text.T11" ns1:ignore="UnusedResources">
        <item name="android:textSize">14sp</item>
        <item name="android:lineSpacingExtra">6sp</item>
        <item name="android:textStyle">bold</item>
    </style>
    <style name="FirebaseUI.Text.T12" ns1:ignore="UnusedResources">
        <item name="android:textSize">12sp</item>
        <item name="android:lineSpacingExtra">4sp</item>
    </style>
    <style name="FirebaseUI.Text.T13" ns1:ignore="UnusedResources">
        <item name="android:textSize">10sp</item>
    </style>
    <style name="FirebaseUI.Text.T14">
        <item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
        <item name="android:textColor">?android:attr/textColor</item>
    </style>
    <style name="FirebaseUI.TextInputEditText">
        <item name="android:textSize">16sp</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
    </style>
    <style name="FirebaseUI.TextInputEditText.EmailField">
        <item name="android:inputType">textEmailAddress</item>
    </style>
    <style name="FirebaseUI.TextInputEditText.NameField">
        <item name="android:inputType">textCapWords</item>
    </style>
    <style name="FirebaseUI.TextInputEditText.PasswordField">
        <item name="android:inputType">textPassword</item>
    </style>
    <style name="FirebaseUI.TextInputEditText.PhoneField">
        <item name="android:hint">@string/fui_phone_hint</item>
        <item name="android:inputType">phone</item>
        <item name="android:imeOptions">actionNext</item>
        <item name="android:paddingBottom">16dp</item>
        <item name="android:paddingTop">16dp</item>
    </style>
    <style name="FirebaseUI.TextInputLayout" parent="Widget.Design.TextInputLayout"/>
    <style name="FirebaseUI.TextInputLayout.EmailField">
        <item name="android:hint">@string/fui_email_hint</item>
    </style>
    <style name="FirebaseUI.TextInputLayout.NameField">
        <item name="android:hint">@string/fui_name_hint</item>
    </style>
    <style name="FirebaseUI.TextInputLayout.PasswordField">
        <item name="android:hint">@string/fui_password_hint</item>
    </style>
    <style name="FirebaseUI.Transparent" parent="FirebaseUI">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>
    </style>
    <style name="FirebaseUI.VerifyPhoneButton" parent="FirebaseUI.Button">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_gravity">center_horizontal</item>
    </style>
    <style name="FirebaseUI.WrapperStyle">
        <item name="android:layout_height">match_parent</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:paddingTop">16dp</item>
        <item name="android:paddingLeft">@dimen/fui_wrapper_padding_horiz</item>
        <item name="android:paddingRight">@dimen/fui_wrapper_padding_horiz</item>
    </style>
</resources>

And the offending line 284 is
B4X:
<style name="FirebaseUI.TextInputLayout" parent="Widget.Design.TextInputLayout"/>

What can I try to fix it?

Thanks in advance.
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I fear that you are using the old SDKManager? Are you using the old SDK or did you setup a new SDK with the new B4A SDK MAnager integrated into the IDE?

1. Java JDK v8
  • Open the Java 8 JDK download link.
  • Check the Accept License Agreement button.
  • Select "Windows x86 (32-bit) or Windows x64" in the platforms list.
  • Download the file and install it.
2. Android SDK
3. B4A
  • Download B4A Trial Version
  • Open B4A.
  • Choose Tools > Configure Paths.
  • Set the path to "javac.exe" if it is empty (C:\Program Files\Java\jdk1.8.0_102\bin\javac.exe).
  • Click on Open Sdk Manager button.
  • Set the path to "sdkmanager.bat" (C:\Android\tools\bin\sdkmanager.bat) and install all recommended items.
  • Read and accept the licenses when asked for.
  • Return to B4A and set the path to "android.jar" (C:\Android\platforms\android-27\android.jar).
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
I fear that you are using the old SDKManager? Are you using the old SDK or did you setup a new SDK with the new B4A SDK MAnager integrated into the IDE?

I switched to the integrated sdk manager once it became available with the version of b4a I've been using, as shown in the attached image. During the switch over, I didn't uninstall existing ones, in c:\android\android-sdk, first and I assume that shouldn't make any difference.

I noticed that there is a folder, E:\sdk-tools-windows-3859397, created on my computer since I started using the integrated sdk manager. I assume that this is the staging folder which b4a uses internally to install/update android sdk. In case this is the new installation folder, there might be some problem.
 

Attachments

  • integratedAndroidSdkInstaller.jpg
    integratedAndroidSdkInstaller.jpg
    269.4 KB · Views: 319
  • androidInstallationFolder.jpg
    androidInstallationFolder.jpg
    291.9 KB · Views: 301
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I noticed that there is a folder, E:\sdk-tools-windows-3859397, created on my computer since I started using the integrated sdk manager. I assume that this is the staging folder which b4a uses internally to install/update android sdk. In case this is the new installation folder, there might be some problem.
i suggest to do a completely new installation in a fresh folder. I saw different threads where it does work out of the box when first running the SDK MAnager.

Otherwise i do not have any more idea what causing this, sorry.
Ok, one more; you can try to clean the project... STRG-P

I just can say that the example works for me in the form i uploaded it. I just tried it to run after you created this thread.
 
Upvote 0
Top