简体   繁体   English

无法在Android模拟器上运行现有的react-native项目

[英]Trouble running existing react-native project on Android emulator

I'm currently trying to set up an existing react-native project on an android emulator (OSX). 我目前正在尝试在android模拟器(OSX)上设置现有的react-native项目。

I'm having some trouble with this error particularly: 我在处理此错误时遇到了一些麻烦,尤其是:

Execution failed for task :react-native-lock:processReleaseResources  

After running $(npm bin)/react-native run-android . 运行$(npm bin)/react-native run-android

Any wisdom would be super appreciated! 任何智慧将不胜感激!

Try using 尝试使用

  1. cd android 安卓系统
  2. ./gradlew clean ./gradlew干净
  3. cd.. 光盘..
  4. react-native run-android react-native运行Android

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Android模拟器上运行react-native项目不起作用 - Running react-native project on Android emulator doesn't work 在android模拟器中运行react-native - running react-native in android emulator 在现有项目React-Native中添加现有的本机项目Android - Add existing native project Android in exist project React-Native 在现有的 React Native iOS 项目中安装 React-Native Android? - Installing React-Native Android in existing React Native iOS project? 在 Android 模拟器中运行 npx react-native CLI 时出错 - Error in running npx react-native CLI in Android emulator npx react-native run-android 不启动模拟器,如果模拟器正在运行则不运行 - npx react-native run-android doesn't start emulator and doesn't run if emulator is running React-Native - 图像未在 Android 模拟器中显示 - React-Native - Image not showing in Android emulator react-native>运行android模拟器会导致“无法启动”模拟器错误 - react-native > Running android simulator results in “Could not launch” emulator error React-Native:错误无法安装应用程序。 确保您正在运行 Android 模拟器 - React-Native: error Failed to install the app. Make sure you have an Android emulator running 将 react-native 集成到现有的 Android 应用程序中 - Integrating react-native into existing Android App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM