[英]Execution failed for task ':app:installDebug' react native app
Hi i got this error when i try to run react app on my real android device via: react-native run-android
嗨,当我尝试通过以下方式在我的真实 android 设备上运行 React 应用程序时出现此错误:
react-native run-android
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to install all
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Try these steps.试试这些步骤。
android/build
android/build
build 文件夹npm install
to re-install node modules.npm install
以重新安装节点模块。react-native run-android
react-native run-android
运行你的应用If you are using Android Studio, make sure you run the emulator before running the commands and the emulator API level matches the targetSdk (build.gradle).如果您使用的是 Android Studio,请确保在运行命令之前运行模拟器,并且模拟器 API 级别与 targetSdk (build.gradle) 匹配。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.