我遇到了问题,我遵循了所有文档,但是仍然出现此错误:
> 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?
答案 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"
}