Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

can not run #1

Open
nysin opened this issue Feb 10, 2017 · 5 comments
Open

can not run #1

nysin opened this issue Feb 10, 2017 · 5 comments

Comments

@nysin
Copy link

nysin commented Feb 10, 2017

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

@MarnoDev
Copy link
Owner

这里面有解决方法【一起学】React Native踩坑大全(17.2.13更新)

@junlandroid
Copy link

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

@mvpdream
Copy link

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

@xiaomaguohe007
Copy link

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

@whoskobe
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants