问题
I have question about react-native-navigation , when i am trying to start my app with command npm run android
i am getting an error here is the github repo with code 'https://github.com/albert002/learn-react-native' `* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not resolve project :react-native-navigation. Required by: project :app Unable to find a matching configuration of project :react-native-navigation: None of the consumable configurations have attributes.
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
回答1:
first, you should install all dependency by running the following command
npm install
then
npm start
to run react native android project run
react-native run-android
this work for me.
来源:https://stackoverflow.com/questions/54478730/react-native-and-react-native-navigation-error