随笔分类 -  react-native异常统计

Could not find method google() for arguments [] on repository container,rn 集成react-native-camera 出现此错误的解决方法
摘要:(1) app/build.gradle (2) build.grande (3) gradle/wrapper/gradle-wrapper.properties 经过以上三步,解决了我的问题。 如果打包时出现图片检测错误 aapt 在gradle/wrapper/gradle-wrapper.p 阅读全文
posted @ 2019-01-01 17:18 大笨鹰 阅读(5426) 评论(0) 推荐(0)
停止node进程和查看react-native-cli
摘要:taskkill /f /t /im node.exe which react-native 阅读全文
posted @ 2018-10-11 18:49 大笨鹰 阅读(794) 评论(0) 推荐(0)
React Native 安卓 程序运行报错: React Native version mismatch(转载)
摘要:这个问题已经得到解决,参照stackoverflow上的问题:https://stackoverflow.com/que...这个问题的原因就处在Android工程中app/build.gradle中,build.gradle中对于 react-native库的版本的配置默认是这么写的: 这个最后面 阅读全文
posted @ 2018-09-29 00:54 大笨鹰 阅读(671) 评论(0) 推荐(0)
Unable to resolve module crypto
摘要:Add rn-nodeify to your devDependencies in package.json: Add the following to the scripts section of the same file: 阅读全文
posted @ 2018-09-19 23:24 大笨鹰 阅读(904) 评论(0) 推荐(0)
Couldn't find preset "es2015" relative to directory问题解决
摘要:由于是菜鸟没使用ES标准,而引入的vue-ueditor使用了ES标准,所以编译会报错,解决办法如下: npm install babel-preset-es2015 --save-dev 然后需要在webpack.base.conf.js文件中加入如下代码 阅读全文
posted @ 2018-09-19 23:00 大笨鹰 阅读(432) 评论(0) 推荐(0)
java.io.IOException: Could not delete path 'D:\mycode\reactnative\SecondTest\android\app\build\generated\source\r \release\android\support\v7
摘要:问题解决 直观上看是没有删除某个文件,产生的IOException异常,实际上是因为上次编译导致的缓存没有清空导致的。 进入到android目录下运行下面代码清除上次打包时的缓存: ./gradlew clean 阅读全文
posted @ 2018-09-19 18:55 大笨鹰 阅读(1253) 评论(0) 推荐(0)
react-native “Unable to resolve module 'AccessibilityInfo'” 的解决方案
摘要:执行 react-native run-android 安装Android APP后却是一屏大红幕报 Unable to resolve module ‘AccessibilityInfo’ 的异常 在Stack Overflow上得到提示,可能是react-native 和 react-nativ 阅读全文
posted @ 2018-08-21 16:15 大笨鹰 阅读(985) 评论(0) 推荐(0)
eact native生成APP报错:You have not accepted the license agreements of the following SDK components:
摘要:一、报错信息 二、错误原因 从Android Gradle plugin 2.2.0开始,gradle会自动加载需要的SDK, build-tools,但是因为没有接受license,导致加载依赖终止。 三、解决办法 (1)找到自己的android SDK位置,进入Tools/bin目录下 (2)打 阅读全文
posted @ 2018-08-21 14:38 大笨鹰 阅读(2306) 评论(0) 推荐(0)
undefined is not an object (evaluating '_react2.PropTypes.string')
摘要:对所引用的组件原 。import React, {Component,PropTypes} from 'react' 改成:import React, {Component} from 'react' 和 import { PropTypes} from 'prop-types'; 注释:从Reac 阅读全文
posted @ 2018-05-21 16:02 大笨鹰 阅读(576) 评论(0) 推荐(0)
React-native-camera error with Expo: undefined is not an object (evaluating 'CameraManager.Aspect')
摘要:React-native-camera error with Expo: undefined is not an object (evaluating 'CameraManager.Aspect') 解决方案: react-native link react-native-camera 阅读全文
posted @ 2018-05-21 15:45 大笨鹰 阅读(940) 评论(0) 推荐(0)
React Natived打包报错java.io.IOException: Could not delete path '...\android\support\v7'解决
摘要:问题详情 React Native打包apk时在第二次编译时候报错: 问题解决 直观上看是没有删除某个文件,产生的IOException异常,实际上是因为上次编译导致的缓存没有清空导致的。 进入到android目录下运行下面代码清除上次打包时的缓存: 或者: 阅读全文
posted @ 2018-05-21 15:43 大笨鹰 阅读(3055) 评论(0) 推荐(0)
React native Configuration with name 'default' not found.
摘要:添加插件后出现异常 解决方案是: react-native upgrade 更新代码 阅读全文
posted @ 2018-05-21 15:08 大笨鹰 阅读(467) 评论(0) 推荐(0)