React Native-React Native Firebase-Google登录Android

时间:2019-01-08 08:15:31

标签: javascript android firebase react-native

我遇到了问题,我遵循了所有文档,但是仍然出现此错误:

> 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;

为什么找不到符号BaseActivityEventListener?

1 个答案:

答案 0 :(得分:1)

由于react-native init中的更改,这通常会在更新版本的React Native中发生,请尝试确保项目级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" }