简体   繁体   English

React Native - React Native Firebase - Google 登录 Android

[英]React Native - React Native Firebase - Google Sign In Android

I have a problem, I followed all of the documentations, but I still get this error :我遇到了问题,我遵循了所有文档,但仍然出现此错误:

 > Task :react-native-google-signin:compileDebugJavaWithJavac FAILED /Users/galihlarasprakoso/Projects/ReactNative/RealProject/pawonku/node_modules/react-native-google-signin/android/src/main/java/co/apptailor/googlesignin/RNGoogleSigninModule.java:11: error: cannot find symbol import com.facebook.react.bridge.BaseActivityEventListener;

Why cannot find symbol BaseActivityEventListener?为什么找不到符号 BaseActivityEventListener?

这通常发生在较新版本的 React Native 中,由于react-native init更改,请尝试确保项目级build.gradle中的 maven 配置如下所示:

maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM