You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows Subsystem for Android中Firebase Auth UI无法正常工作

在Windows Subsystem for Android模拟器上运行Firebase认证遇到的问题

我在Windows Subsystem for Android模拟器上运行应用,除认证功能外其余均正常。

使用的依赖库

'com.firebaseui:firebase-ui-auth:8.0.2'
'com.google.firebase:firebase-bom:31.2.0'

认证相关代码

activity.startActivityForResult(
        AuthUI.getInstance()
                .createSignInIntentBuilder()
                .setAvailableProviders(Arrays.asList(
                        new AuthUI.IdpConfig.EmailBuilder().build(),
                        new AuthUI.IdpConfig.GoogleBuilder().build()
                ))
                .setTosAndPrivacyPolicyUrls(activity.getString(R.string.terms_and_conditions_url)
                        ,activity.getString(R.string.privacy_policy_url))
                .setLogo(R.drawable.app_icon_512)
                .setIsSmartLockEnabled(false)
                .build(),
        C.CODE_AUTH_REQUEST);

出现的错误信息

[包名] requires the Google Play Store, but it is missing.

The service for com.google.android.gms.internal.auth-api.zbo is not available: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}

我推测这是因为Windows模拟器未安装Google Play Services,但Firebase文档显示认证等服务并不强制要求Google Play Services。请问有人遇到过同样的问题吗?


内容的提问来源于stack exchange,提问作者Alex Busuioc

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 13:34:59