HelloRN
HelloRN copied to clipboard
can not run
Project react-native-video: provided dependencies can only be jars. com.facebook.react:react-native:aar:0.40.0 is an Android Library.
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':react-native-video:prepareReleaseDependencies'.
Dependency Error. See console for details
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 18.458 secs Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have (node:39314) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html
我npm install react-native-video 怎么还是运行不成功呢
这里面有解决方法【一起学】React Native踩坑大全(17.2.13更新)
碰到相同的问题“Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined”,请问如何解决。
@nysin 请问你这个问题解决了吗
@nysin 请问这个问题解决了吗?遇到同样的问题
还要修改node_modules下的react-native-video包里面 android 文件夹下的 build.gradle 将 provide 'com.facebook.react:react-native:+' 改成 compile 'com.facebook.react:react-native:+'