gpt4 book ai didi

android - 应用程序未启动 - React Native (Android)

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:58:13 25 4
gpt4 key购买 nike

我正在尝试 React Native's Getting Started guide .完成安装后,我尝试运行该应用程序。

应用程序似乎已成功部署到虚拟设备,但调试器未附加/应用程序未自动启动。

我在 Ubuntu 16.04 LTS 上运行。有什么想法吗?

我的终端输出如下。

Installing APK 'app-debug.apk' on 'emulator-5554 - 7.1'Installed on 1 device.

BUILD SUCCESSFUL

Total time: 7.922 secs

This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.4/userguide/gradle_daemon.html/bin/sh: 1: adb: not foundStarting the app (adb shell am start -n com.awesomeproject/.MainActivity...

没有任何反应,当我尝试从虚拟设备运行该应用程序时出现红屏死机。我还探索了this solution .提前致谢

最佳答案

我遇到了同样的问题,对我来说,我通过运行以下配置解决了它:

export ANDROID_HOME=${HOME}/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

引用:https://facebook.github.io/react-native/docs/getting-started.html

关于android - 应用程序未启动 - React Native (Android),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41217185/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com