无法使用USB调试运行React Native应用

问题描述

我正在尝试在移动设备上运行react native应用程序,但是尽管它可以在模拟器上完美运行,但是它失败了。这是运行 react-native run-android 后出现的错误

BUILD Failed in 11s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command Failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Unable to install C:\Users\Ahmed\Desktop\rn-playground\android\app\build\outputs\apk\debug\app-debug.apk

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)