react-native-video error
来源:互联网 发布:固态用软件优化 编辑:程序博客网 时间:2024/04/30 08:52
react-native-video error
Users/holoto/WebstormProjects/demo/android/app/src/main/java/com/demo/MainActivity.java:4: error: cannot find symbolimport com.brentvatne.RCTVideo.ReactVideoPackage; ^ symbol: class ReactVideoPackage location: package com.brentvatne.RCTVideo/Users/holoto/WebstormProjects/demo/android/app/src/main/java/com/demo/MainActivity.java:46: error: cannot find symbol new ReactVideoPackage(), ^ symbol: class ReactVideoPackage location: class MainActivity2 errors:app:compileDebugJavaWithJavac FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation failed; see the compiler error output for details.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILEDTotal time: 1 mins 17.722 secsCould 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 haveset up your Android development environment:https://facebook.github.io/react-native/docs/android-setup.html
code
Check “`
android/app/src/main/java/com/{你的rn项目名称}/MainActivity.java
import com.brentvatne.RCTVideo.ReactVideoPackage;
to
import com.brentvatne.react.ReactVideoPackage;
“`
参考
https://github.com/brentvatne/react-native-video/issues/217
0 0
- react-native-video error
- react native video
- react-native播放视频组件 react-native-video的用法
- RN开源播放器Video组件(react-native-video)
- React Native开源播放器Video组件(react-native-video)
- react-native run-android error
- RN开源组件react-native-video的用法
- react-native-beautiful-video-recorder 视频记录器组件
- react native踩坑记之react-native-video 安卓平台下自动播放bug
- React Native iOS 之error babelrc.stage
- React Native error “Could not get BatchedBridge
- react-native初始化项目时候报错?Error: Command failed: yarn add react-native --exact
- React Native android 错误 com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.
- Android使用react-native-video 播放视频一直重复播放的解决方法
- 解决react-native fetch请求报错JSON parse error
- react-native run-android error: unknown host service
- react native -FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null)
- react native Webview ios <Error>: CGAffineTransformInvert: singular matrix.
- LCD屏幕测试灰阶
- 打开xcworkspace左边的Xcodeproj为红色
- launcher相关小功能
- linux VMware安装 CentOS6.5 教程
- xml namespace in android
- react-native-video error
- 爬虫系列3:scrapy技术进阶(xpath、rules、shell等)
- 看懂UML类图
- IOS 从服务器下载文件
- 开源的许可证GPL、LGPL、BSD、Apache 2.0的通俗解释
- 回归问题中关于cost function 的选择
- org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.compon
- SDUT 3548 疯狂的小金 (贪心) -- 解题报告
- 项目运行