我一直在我的android设备上运行这个react-native项目,直到昨天,它一直工作得很顺利。 今天,当我运行react-native run-android时,我得到了以下错误: > Task :app:preDebugBuild FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve
我刚刚用React Native Typescript模板创建了一个新项目。但我发现,当我导入一个新组件时,它抛出了以下错误。我的新组件位于src/screens/HomeScreen.tsx内部 error: Error: Unable to resolve module `src/screens/HomeScreen` from `App.tsx`: src/screens/HomeScreen could not be found within the project. 如果我在App.tsx中内联相同的组件,那么它工作得很好。但是从另一个文件导入会导致此问题。我尝试删除并重新创建该问
我在OSX上使用的是react-native 0.43.3。我试着在Android上运行应用程序,然后收到消息
react-native run-android
Scanning 568 folders for symlinks in /Users/ruci.k/project/mayacrew/supermembers/supermembers/node_modules (5ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew
React-Native中的下一个程序允许播放视频,但会阻止点击按钮。我相信这是因为位置:绝对值,但有没有办法避免这个问题? import React, { Component } from 'react';
import Video from 'react-native-video';
import {
StyleSheet,
TouchableOpacity,
Text,
View,
Button,
} from 'react-native'
class App extends Component {
state
我在安卓设备上的RN应用程序有问题(还没有在iOS上测试),一旦我在设备上启动调试,它就会卡在一个黑屏幕上。
我不知道代码的哪一部分或者是什么设置导致了这一点,这就是我没有在这里显示任何编码的原因。只是想看看你们以前是否有过同样的问题。
以下是我尝试过的:
gradlew clean
react-native start --reset-cache
cleaned app data and cache in the device
uninstalled the app from the device
以下是我在我的应用程序上安装和使用的软件包:
{
"name":
在iOS链接阶段,我开始看到的错误。
React原生版本:0.41.2、0.40、0.39
所有操作都很好,我编辑了Android版本,响应本地代码没有改变,当这种链接错误开始显示时,没有找到/node_modules/react-native/React/Base/{RCTHeaderName.h}路径上的标题:
In file included from /Users/user/ReactNativeProject/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h: