我创建了一个简单的“hello world”风格的 Roku 应用程序,它构建和安装得很好。但是,当我尝试查看频道时,它不会调用我在启动后设置的屏幕,并且当我尝试运行
make run
或 make install
时,我总是得到 ERROR: Device not responding to ping.
查看makefile,我认为是这个错误:
# -------------------------------------------------------------------------
# CHECK_ROKU_DEV_TARGET is used to check if ROKU_DEV_TARGET refers a
# Roku device on the network that has an enabled developer web server.
# If the target doesn't exist or doesn't have an enabled web server
# the connection should fail.
# -------------------------------------------------------------------------
define CHECK_ROKU_DEV_TARGET
if [ -z "$(ROKU_DEV_TARGET)" ]; then \
echo "ERROR: ROKU_DEV_TARGET is not set."; \
exit 1; \
fi
echo "Checking dev server at $(ROKU_DEV_TARGET)..."
# first check if the device is on the network via a quick ping
ping $(QUICK_PING_ARGS) $(ROKU_DEV_TARGET) &> $(DEV_SERVER_TMP_FILE) || \
( \
echo "ERROR: Device is not responding to ping."; \
exit 1 \
)
我不应该已经设置了ROKU_DEV_TARGET并且它可以通过echo使用。我还可以使用返回的 IP 连接到设备。我不确定为什么会出现此错误。
有时,当有待更新时,Roku 设备会陷入奇怪的状态。您可以尝试进入设置并选择检查更新,然后重新启动设备。
也可能存在这样的情况:检查更新后,它说它是最新的,但设备仍然没有响应。通常,重新启动会有所帮助。