随笔分类 - 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
阅读全文
停止node进程和查看react-native-cli
摘要:taskkill /f /t /im node.exe which react-native
阅读全文
React Native 安卓 程序运行报错: React Native version mismatch(转载)
摘要:这个问题已经得到解决,参照stackoverflow上的问题:https://stackoverflow.com/que...这个问题的原因就处在Android工程中app/build.gradle中,build.gradle中对于 react-native库的版本的配置默认是这么写的: 这个最后面
阅读全文
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:
阅读全文
Couldn't find preset "es2015" relative to directory问题解决
摘要:由于是菜鸟没使用ES标准,而引入的vue-ueditor使用了ES标准,所以编译会报错,解决办法如下: npm install babel-preset-es2015 --save-dev 然后需要在webpack.base.conf.js文件中加入如下代码
阅读全文
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
阅读全文
react-native “Unable to resolve module 'AccessibilityInfo'” 的解决方案
摘要:执行 react-native run-android 安装Android APP后却是一屏大红幕报 Unable to resolve module ‘AccessibilityInfo’ 的异常 在Stack Overflow上得到提示,可能是react-native 和 react-nativ
阅读全文
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)打
阅读全文
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
阅读全文
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
阅读全文
React Natived打包报错java.io.IOException: Could not delete path '...\android\support\v7'解决
摘要:问题详情 React Native打包apk时在第二次编译时候报错: 问题解决 直观上看是没有删除某个文件,产生的IOException异常,实际上是因为上次编译导致的缓存没有清空导致的。 进入到android目录下运行下面代码清除上次打包时的缓存: 或者:
阅读全文
React native Configuration with name 'default' not found.
摘要:添加插件后出现异常 解决方案是: react-native upgrade 更新代码
阅读全文
浙公网安备 33010602011771号