Stuck on (Task :react-native-navigation:compileReactNative56DebugJavaWithJavac FAILED)
Issue Description
I've just started react-native-navigation for the upcoming project as react-navigation is going to deprecate the redux support. But i'm still not able to build my very first example project using react-native-navigaiton v2. I've spent a lot of hours by apply everything i got on gihub issues that are similar to mine. But none of them worked for me. Please help to get rid off from this. thanks Error ` Task :react-native-navigation:compileReactNative56DebugJavaWithJavac FAILED D:\projects\react-native\quizup - Copy\node_modules\react-native-navigation\lib\android\app\src\reactNative56\java\com\reactnativenavigation\react\SyncUiImplementation.java:10: error: cannot find symbol import com.facebook.react.uimanager.UIImplementationProvider; ^ symbol: class UIImplementationProvider location: package com.facebook.react.uimanager D:\projects\react-native\quizup - Copy\node_modules\react-native-navigation\lib\android\app\src\reactNative56\java\com\reactnativenavigation\react\SyncUiImplementation.java:23: error: cannot find symbol public static class Provider extends UIImplementationProvider { ^ symbol: class UIImplementationProvider location: class SyncUiImplementation D:\projects\react-native\quizup - Copy\node_modules\react-native-navigation\lib\android\app\src\main\java\com\reactnativenavigation\react\NavigationReactNativeHost.java:86: error: cannot find symbol .setUIImplementationProvider(getUIImplementationProvider()) ^ symbol: method getUIImplementationProvider() location: class NavigationReactNativeHost D:\projects\react-native\quizup - Copy\node_modules\react-native-navigation\lib\android\app\src\reactNative56\java\com\reactnativenavigation\react\SyncUiImplementation.java:24: error: method does not override or implement a method from a supertype @Override ^ D:\projects\react-native\quizup - Copy\node_modules\react-native-navigation\lib\android\app\src\reactNative56\java\com\reactnativenavigation\react\SyncUiImplementation.java:29: error: method does not override or implement a method from a supertype @Override ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 5 errors
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':react-native-navigation:compileReactNative56DebugJavaWithJavac'.
Compilation failed; see the compiler error output for details. `
Environment
- React Native Navigation version: 2.0.2427 also tried ^2.0.2631
- React Native version: 0.57.0 (also tried 0.56.x and 0.55.x but they cause more bugs)
- Platform(s) : Android phone and Emulator
currently they it seems that RNN doesn't support 0.57. it happens to me too that's why I downgraded to RN 0.56. now it is working
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the react-native-navigation tag.
It's a bug because i followed the documentation and it didn't work.
I got same issue, anyone find solution ?
Yeah, I've fixed it by downgrading the react-native version. There are my project dependies in the package.json file maybe it can help you.
"dependencies": {
"native-base": "^2.8.0",
"react": "16.5.0",
"react-native": "0.55.4",
"react-native-config": "0.11.5",
"react-native-easy-grid": "^0.2.0",
"react-native-firebase": "^5.0.0",
"react-native-navigation": "2.0.2295",
"react-native-popup-dialog": "^0.15.1",
"react-native-spinkit": "^1.1.1",
"react-native-vector-icons": "^5.0.0",
"react-redux": "^5.0.7",
"redux": "^4.0.0",
"redux-thunk": "^2.3.0",
"watchman": "^1.0.0"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "^0.45.2",
"react-test-renderer": "16.5.0"
},
"jest": {
"preset": "react-native"
}
@david-pe