ReactNative---WebStorm 环境配置------遇到的坑点

来源:互联网 发布:软件质量管理体系分类 编辑:程序博客网 时间:2024/06/06 00:27

前面是用的官网的安装方式http://reactnative.cn/docs/0.43/getting-started.html#content



jdk必须是1.8,否则报错下面会有提到。

到这里就开始安装WebStorm,从官网下载最新的

=============================================================================

坑点1.java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0

解决1.下载JDK1.8

我下载jdk1.8还是报错。玛德后来发现是环境变量配置出问题了,1.7和1.8都装了有的地方配置的还是1.7。所以还是报错

坑点文档集合

http://lib.csdn.net/article/reactnative/57230

http://codecloud.net/16097.html

http://www.open-open.com/lib/view/open1477469117948.html#articleHeader3

https://segmentfault.com/a/1190000004326352https://segmentfault.com/a/1190000004326352

http://blog.csdn.net/guxiao1201/article/details/50899115

http://blog.csdn.net/u013531824/article/details/53496011

http://blog.csdn.net/sfq19881224/article/details/56012280

http://blog.csdn.net/b992379702b/article/details/52234479

http://blog.csdn.net/fly_yuge/article/details/53763205

1.
Could not get BatchedBridge, make sure your bundle is packaged correctly

输入下面命令解决:
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ 

这里写图片描述


0 0
原创粉丝点击