auth0/Lock.Android

EditTexts are not showing up

Closed this issue ยท 11 comments

Description

I have completed all the steps from the documentation and I can see the lock activity but there is no input field in this activity.

Screen Shot 2020-04-28 at 5 27 45 AM

I see this in all my environments including production. Downloaded our app from store now to check and there is no username and password fields showing on Login Screen and no fields on the sign up screen either.

I found that if I change my build.gradle to
implementation 'com.google.android.material:material:1.0.0'
rather than the newer
implementation 'com.google.android.material:material:1.1.0'
everything works again

I found that if I change my build.gradle to
implementation 'com.google.android.material:material:1.0.0'
rather than the newer
implementation 'com.google.android.material:material:1.1.0'
everything works again

For me it's already 1.1.0

Yes so change it to 1.0.0 that will fix the problem

Thanks.. That did fix the issue! But I need the latest material library! I still think this issue is valid since the library is not compatible with the latest material library

Yes, this needs to be fixed so that we can use the correct Google libraries. The solution here is only a temporary work around. @auth0 please fix this.

Got the same problem and I've done too far for rolling back to the previous version of material components library, so I put some efforts to get it work for me.

Amazing.. Hopefully the review would be quick..

๐Ÿ‘‹ Thanks for creating this. It's indeed an error that needs to be addressed.

However, I'm trying to reproduce the issue and can't. I've created a new android project from scratch, using Android X and Lock 2.18.0. After following the steps on the Lock's readme, I obtain a simple app that's only meant to launch the LockActivity in order to test the tabs component. Adding the dependency 'com.google.android.material:material:1.1.0' and even changing it to 1.0.0 doesn't trigger this error. Can someone share more details or even a simple repro project I could try the PR on? For example, AndroidX or AppCompat libraries, dependencies included, API version targetted, etc.

@lbalmaceda you can use this sample project that I have created that shows this happening. Put in an auth0 domain and client id in the Strings.xml to make it work after cloning and building.
When running this project the expected result is that the login screen will not have the username and password controls showing.

If you change implementation 'com.google.android.material:material:1.1.0' in the module level build.gradle to implementation 'com.google.android.material:material:1.0.0' and run the project, the controls will then show.

https://github.com/Edward-Kaschula/SampleAuth0.git

Thanks for sharing that. I found the reason why I couldn't repro this. My emulator was running Android 25. I've tried on 28 and 30 and the issue is now visible in both.
I'll check @ivabra PR locally and will help with a release soon. ๐Ÿ™Œ