gpt4 book ai didi

android - React Native 应用程序已成功安装,但未从 WebStorm 启动

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:12:25 24 4
gpt4 key购买 nike

当我尝试为我的设备构建 ReactNative 应用程序时,我得到了这个:

BUILD SUCCESSFUL

Total time: 25.191 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
Starting the app (adb shell am start -n com.neborofeed/com.neborofeed.MainActivity.../bin/sh: adb: command not found

该应用已安装在我的设备上,但未自动启动。当我将此命令复制到终端 adb shell am start -n com.neborofeed/com.neborofeed.MainActivity 时,应用程序按预期启动。

最佳答案

似乎脚本无法找到 adb,您是否在 ~/.bash_profile 或类似文件中添加了 PATH?

如果你还没有尝试运行:

echo "export PATH=\$PATH:/Users/${USER}/Library/Android/sdk/platform-tools/" >> ~/.bash_profile

如果您的 sdk 位于不同的目录中,请更新上述命令中的路径。

关于android - React Native 应用程序已成功安装,但未从 WebStorm 启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46205784/

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