在获取RNCWebView的android项目上工作未找到错误

问题描述

我正在与朋友Windows 10一起进行gitlab项目,我已经从master撤出,几乎没有冲突需要解决,我做了npm install,但是当我使用{ {1}},然后从android studio中运行,方法是转到工具-> AVN管理器->启动,我的应用开始加载,加载一段时间后,出现以下错误

npx react-native start

这是一张照片:

enter image description here

我已经运行过 Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager. ,它什么也没做。在我的react-native link react-native-webview中,我有这个:

package.json

代码如下:

"react-native-webview": "^10.8.3",

我已经完成了此thread as well中的所有操作。我犯了同样的错误。在我从大师那里拉之前,这个问题不存在。我有什么需要做的吗?

解决方法

gradlew --stop 

然后清除项目,然后再次运行:

react-native run-android --port=8082

这对我有用,感谢@Sriram。