HelloRN icon indicating copy to clipboard operation
HelloRN copied to clipboard

can not run

Open nysin opened this issue 8 years ago • 5 comments

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 怎么还是运行不成功呢

nysin avatar Feb 10 '17 03:02 nysin

碰到相同的问题“Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined”,请问如何解决。

junlandroid avatar Aug 21 '17 08:08 junlandroid

@nysin 请问你这个问题解决了吗

mvpdream avatar Sep 18 '17 06:09 mvpdream

@nysin 请问这个问题解决了吗?遇到同样的问题

xiaomaguohe007 avatar Oct 17 '17 06:10 xiaomaguohe007

还要修改node_modules下的react-native-video包里面 android 文件夹下的 build.gradle 将 provide 'com.facebook.react:react-native:+' 改成 compile 'com.facebook.react:react-native:+'

whoskobe avatar Mar 13 '18 07:03 whoskobe