安卓上的 react-native run-android <5 [英] react-native run-android on Android < 5

查看:52
本文介绍了安卓上的 react-native run-android <5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Android V4.1.1 在模拟器上运行 Android 应用程序,该应用程序在 Android 版本 > 5 中运行正常,但是当我尝试在 Android V4.X 上运行该应用程序时,终端给了我下一个错误:

i'm trying to run an Android App on a simulator with Android V4.1.1, the app is working ok in Android version > 5, but when i try to run the app on Android V4.X the terminal is giving me the next error:

Running adb -s xxx.xxx.xx.xxx:5555 reverse tcp:8081 tcp:8081
error: closed
Could not run adb reverse: Command failed: adb -s xxx.xxx.xx.xxx:5555 reverse tcp:8081 tcp:8081

显示该错误后,应用程序显示:

After showing that error the app shows:

Unfortunately, APP_NAME has stopped.

我有最新版本的 Android SDK 和工具.

I have the latest version of the Android SDK and tools.

推荐答案

我找到了在 Android 4.1.1 中运行的方法,在 Genymotion 中它不起作用,但在 Android Studio 的模拟器中它起作用.我仍然无法让它在 Geny 上运行.

I found the way to run in Android 4.1.1, in Genymotion it wasn't working, but in the simulator of Android Studio it works. I still can't manage to make it run on Geny.

这篇关于安卓上的 react-native run-android <5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆