嗨,我刚刚开始使用Roku开发.我下载了sdk,并一直在尝试运行一个hello world应用程序.我有一个源文件夹和一个清单文件.但我仍然收到以下错误:
错误:安装失败:没有清单.无效的包.安装失败:没有清单.
这是hello world的代码:
sub Main()
' create our screen
screen = CreateObject("roPosterScreen")
' setup a message port so we can receive event information
port = CreateObject("roMessagePort")
screen.SetMessagePort(port)
' change the screen's message text
screen.ShowMessage("Hello World!")
screen.Show()
' start our event loop
while true
msg = Wait(0, port) ' wait for an event
if type(msg) = "roPosterScreenEvent"
' we got a poster screen event
if msg.isScreenClosed()
' the user closed the screen
exit while
end if
end if
end while
screen.Close()
' any time all screens in a channel are closed, the channel will exit
end sub
Run Code Online (Sandbox Code Playgroud)
当我上传sdk附带的示例时,它工作正常但是当我尝试用上面的代码替换示例应用程序的Main函数的代码时,我得到上面指定的错误.
我一直在互联网上看这个,但没有多大帮助.任何建议都会非常感激.
Nas*_*nov 12
这听起来像你的文件没有在包中"正确"压缩.确保manifest文件位于zip中的顶级而不是子目录中.
这是人们指向项目目录的常见错误 - 右键单击并将其压缩 - 但这也包括路径中的根目录名称.进入项目目录,选择所有文件和source目录,然后以这种方式压缩.