升级targetSdk到35(Android 15)后FirebaseUI Auth手机号登录界面显示异常的解决求助
升级targetSdk到35(Android 15)后FirebaseUI Auth手机号登录界面显示异常的解决求助
各位大佬好,我最近碰到个棘手的问题,想请大家帮忙支支招!
我的应用用FirebaseUI Auth实现手机号登录功能,依赖配置如下:
implementation 'com.google.firebase:firebase-auth:23.2.1' implementation 'com.firebaseui:firebase-ui-auth:9.0.0'
之前通过这段代码拉起登录界面,一切都正常运行:
signInLauncher.launch( AuthUI.getInstance() .createSignInIntentBuilder() .setTheme(R.style.WTheme) .setAvailableProviders(Arrays.asList( new AuthUI.IdpConfig.PhoneBuilder().setDefaultCountryIso(countryIso).build() )) .build() );
对应的自定义主题样式是这样的:
<style name="WTheme" parent="FirebaseUI"> <!-- Required for sign-in flow styling --> <item name="colorPrimary">@color/w_black</item> <item name="colorPrimaryDark">@color/w_black</item> <item name="colorAccent">@color/w_black</item> <item name="colorControlNormal">@color/w_black</item> <item name="colorControlActivated">@color/w_black</item> <item name="colorControlHighlight">@color/w_black</item> <item name="android:windowBackground">@color/w_pink_1</item> <item name="android:textColorTertiary">@color/w_pink_4</item> <item name="android:textColorSecondary">@color/w_black</item> <!-- Add this to change the placeholder (hint) text color --> <item name="android:textColorHint">@color/w_black</item> <item name="android:textColorPrimary">@color/w_black</item> <!-- Add this to change the button text color --> <item name="buttonStyle">@style/WButtonStyle</item> </style>
可把应用的targetSdk升级到35(Android 15)之后,这个登录界面就变得异常奇怪了。我查了下,com.firebaseui:firebase-ui-auth的最新版本就是9.0.0,之后再也没更新过,这可把我难住了。
有没有大佬遇到过类似的情况?或者有什么办法能让这个登录界面恢复正常显示吗?任何帮助我都会非常感激!
内容来源于stack exchange
相关产品推荐
相关产品推荐

