Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hlumca opened this issue Jun 15, 2023 · 2 comments
Open

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

hlumca opened this issue Jun 15, 2023 · 2 comments

Comments

@hlumca
Copy link

hlumca commented Jun 15, 2023

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 [email protected]. 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?

@CookieStudios5609
Copy link

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!

@mikaere66
Copy link

mikaere66 commented Dec 20, 2024

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, then rebuild project.
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants