React-native and react-native-navigation error

南楼画角 提交于 2019-12-24 19:27:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!