我在安卓设备上的RN应用程序有问题(还没有在iOS上测试),一旦我在设备上启动调试,它就会卡在一个黑屏幕上。
我不知道代码的哪一部分或者是什么设置导致了这一点,这就是我没有在这里显示任何编码的原因。只是想看看你们以前是否有过同样的问题。
以下是我尝试过的:
gradlew clean
react-native start --reset-cache
cleaned app data and cache in the device
uninstalled the app from the device
以下是我在我的应用程序上安装和使用的软件包:
{
"name":
我是新来的本地人。我想做一个项目与反应导航。我发现了一个错误:
SyntaxError: Unexpected token in JSON at position 0
at JSON.parse (<anonymous>)
at FileStore.get(:\Users\fz\Documents\androidproject\test2\node_modules\metro-cache\src\stores\FileStore.js:26:19)
at C:\Users\fz\Documents\androidproject\test2\node_modules\metro-
error: bundling failed: Error: Unable to resolve module `@expo/vector-icons/Ionicons` from `E:\React Projects\Tourism\src\screens\TouristInformation\TouristInformation.js`: Module `@expo/vector-icons/Ionicons` does not exist in the Haste module map
This might be related to https://github.com/facebo
我正在尝试使用https://www.npmjs.com/package/react-native-pdf将base64字符串转换为pdf 我正在使用"react-native":"0.64.0",这是我的尝试, import React, {useState, useEffect} from 'react';
import {Button,Image,View,Platform,Alert,StyleSheet,Dimensions,Text,} from 'react-native';
import Pdf from
我正在尝试将安装到我的React-native项目中,我已经按照文档的建议进行了配置;正如示例所示;我尝试重新安装Android Studio (3.1和3.2);我下载了所有API和所有工具;没有什么可以解决问题:
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
> Configure project :app
WARNING: Configuration 'compile' is
我试图在Android Emulator上运行一个react原生应用程序,但该应用程序在启动后显示此错误。 ? 我不清楚它是在抱怨Android的权限,还是来自expo权限声明为依赖于expo-av和expo-image-picker的其他expo库。 你能帮我一下吗? 这是build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsV
我在构建一个使用react的应用程序时遇到了这个错误,这个构建是成功的,但是得到了这个。
Error: Unable to resolve module ./index from C:\Users\sawan\OneDrive\Desktop\React_Native/.:
None of these files exist:
* index(.native|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.ts|.native.ts|.
当我运行npm run android时,我遇到了构建失败(在安卓的macOS上),并且我得到了以下构建失败:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath
我正在使用react native expo。该应用程序在android上运行良好,但在网络上运行时会出现编译错误。它在以前工作得很好,但我怀疑这是在安装了一些新的软件包后开始的。
/ReactNativeFrontend/node_modules/@codler/react-native-keyboard-aware-scroll-view/lib/KeyboardAwareHOC.js 13:12
Module parse failed: Unexpected token (13:12)
You may need an appropriate loader to handle this f
我在android上发现了这个错误
Error:(15, 5) error: method does not override or implement a method from a supertype;
在档案
.../node_modules/react-native-package-manager/android/src/main/java/com/rnlib/packagemanager/RNPackageManager.java
IOS侧运行得很好。我安装了,之后它似乎开始失败,但我不确定。我用Yarn和rnpm连接包。React-Native link
现在该文件如下所示:
p
我使用的库是来自https://www.npmjs.com/package/react-native-photo-upload的yarn add react-native-photo-upload,它抛出了以下错误: **/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that mat