Skip to content

Sign in with email: NEXT button does not work #253

Open

Description

@hlumca

Android Studio: Flamingo | 2022.2.1 Patch 1
OS: Windows 10
I am running into a problem at
https://firebase.google.com/codelabs/firebase-android#5
When I run my code in the emulator, I get a screen that has a red "Sign in with email" button. In the Sign In screen, I enter user@test.com. When I click on the NEXT button, I see the progress bar flash under the title. However, I am still on the screen that is prompting for email. I was expecting a prompt for the password. How can I determine what is wrong?

Activity

  1. CookieStudios5609 commented on Jun 17, 2023

    @CookieStudios5609

    A temporary fix is to comment out the if (BuildConfig.DEBUG) line and its closing bracket. There's a couple dozen different packages your IDE might try to import BuildConfig from, and it seems like none of them work. Will update if I find one that does, though!

  2. mikaere66 commented on Dec 20, 2024

    @mikaere66

    BuildConfig is local to YOUR app (in this case, the codelab). For that functionality, you need to specify "buildConfig = true" (without the quotes) under buildFeatures in the app/build.gradle.kts file. "Sync the project with Gradle files", comment out the line temporarily, then rebuild your project if necessary.
    You can now use "if (BuildConfig.DEBUG)" ... as intended =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions