简体   繁体   中英

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?

这通常发生在较新版本的 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" }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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