MarnoDev / HelloRN

给所有开发者的 React Native 详细入门指南
225 stars 74 forks source link

can not run #1

Open nysin opened 7 years ago

nysin commented 7 years ago

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.

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 commented 7 years ago

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

junlandroid commented 7 years ago

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

mvpdream commented 7 years ago

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

xiaomaguohe007 commented 6 years ago

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

whoskobe commented 6 years ago

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