React Native的报错1

1. undefined is not an object (evaluating 'ReactINternals.ReactCurrentOwner')
(据说以前没有这个问题,RN的新版本会有此问题,略坑啊。。。)

React Native的报错1_第1张图片

解决办法.:重新下载react依赖包的版本[email protected]

 make sure you've installed the correct version of React. If you're using React Native 0.45:    [email protected];

2. Execution failed for task ':react-native-vector-icons:incrementalReleaseJavaCompilationSafeguard'.

解决办法.:

$  npm install react-native-vector-icons --save
$  react-native link react-native-vector-icons

3. Execution failed for task ':app:mergeDebugResources'.

> Error: Cannot create directory E:\react-native-JueJinClient-master1\android\app\build\intermediates\merged.dir\values

打开Android Studio的 Terminal运行如命令:cd android && gradlew clean

4.Execution failed for task ':app:mergeDebugAssets'.

> Error: java.nio.file.AccessDeniedException: F:\react-native-JueJinClient-master1\android\app\build\intermediates\assets\debug\fonts

解决办法.:打开Android Studio的 Terminal运行如命令:cd android && gradlew clean


5.Error:Execution failed for task ':react-native-vector-icons:generateReleaseBuildConfig'.

> java.io.IOException: Could not delete path 'F:\react-native-JueJinClient-master1\node_modules\react-native-vector-icons\android\

React Native的报错1_第2张图片

解决办法.:使用Android Studio再次运行。

6. 样式表的属性使用错误。

React Native的报错1_第3张图片 React Native的报错1_第4张图片




你可能感兴趣的:(react,native)