一切都很正常,然后突然我在模拟器上运行应用程序时出现了以下错误。
1 error
:react-native-rw-get-gallery-image:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-rw-get-gallery-image:compileReleaseJavaWithJavac'.
> Compilation failed; se
当我尝试使用react-native run-android命令运行react-native应用程序时,我得到了以下错误。我已经在网上搜索过了,还没有找到这个错误的解决方案 yarn run v1.22.4
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1088 file(s) to forward-je
当我尝试执行以下代码时,我的react-native应用程序出现错误
react-native run-android --variant=release
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from /Users/sanglee/Documents/react-native-firebase-start
尝试运行yarn test并尝试了许多节点版本(8和11)、react (57,58),但无法修复此错误。
FAIL __tests__/index.ios.js
● Test suite failed to run
/xyz/mobile-react/node_modules/react-native/jest/setup.js: babel-plugin-jest-hoist: The module factory of `jest.mock()` is not allowed to reference any out-of-scope variables.
In
我安装了android studio,配置了环境变量和所有内容,安装了genymotion并创建了一个设备,但运行项目文件夹中的react-native run-android时出现以下错误:
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
我运行了react-native-git-upgrade,这样以后我就可以运行react-native run-android在我的设备上构建我的应用程序,但出现了一条错误消息。 错误信息为: Error: react-native version in "package.json" (https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz) doesn't match the installed version in "node_modules" (0.57.1). 我再次尝试运行
我创建了一个新的react-使用react的本机项目--本机init AppName,当我尝试在Android中运行时,它抛出了不能获得AppName行中的空对象的属性‘依赖’:183我不知道为什么会出现这个异常。我甚至没有在这个项目上做任何改变
下面是我使用的命令
react-native init Example
cd Example
npm i
react-native run-android
反应-本机版本
react-native-cli: 2.0.1
react-native: 0.61.3
npm - 6.11.2版本
我正在尝试建立反应原生项目的ios版本,android版本正在运行。我不能让ios版本在mac上运行,尝试使用expo,或者只使用模拟器。 ? 在运行expo start之后,以下是错误: Error: RNFirebase core module was not found natively on iOS, ensure you have correctly included the RNFirebase pod in your projects `Podfile` and have run `pod install`.
Invariant Violation: "main"
尝试使用react-native run-android.I时出现错误。我不知道为什么会出现这个错误。
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project '
我正在尝试为我的android手机运行我的react项目。但在键入此命令react-native run-android时
出现以下错误:
FAILURE: Build failed with an exception.
What went wrong:
* Try:
使用--stacktrace option运行以获取堆栈跟踪。使用--info或--debug option运行以获得更多日志输出。
Could not install the app on the device, read the error above for details
Make sure you have an An