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
相关产品推荐
相关产品推荐

