您好,我刚开始使用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
当我上传sdk附带的示例时,它工作正常但是当我尝试用上面的代码替换示例应用程序的Main函数代码时,我得到上面指定的错误。
我一直在网上寻找这个,但没有多大帮助。任何建议都会非常感激。
答案 0 :(得分:12)
这听起来像你的文件没有压缩"正确"在包中。确保manifest
文件位于zip的顶层而不是子目录中。
人们指向项目目录是一个常见的错误 - 右键单击并将其压缩 - 但这也包括路径中的根目录名称。进入项目目录,选择所有文件和source
目录,然后以这种方式压缩。
答案 1 :(得分:0)
如果您的明亮脚本代码有任何错误,您将永远不会收到此错误
没有明显。无效的包。安装失败:
只有在尝试上传无效的zip文件时才会出现此错误。