使用 ADT 编译器将 adobe AIR 应用程序打包为 .air 时出错
我收到以下错误
302:包中缺少根内容index.html文件
adt -package -storetype pkcs12 -keystore Mycert.pfx Display/build/display.air Display/source/application.xml Display/source/index.html Display/source/icons Display/source/js Display/source/sounds
302:我的 application.xml
<initialWindow>
<content>index.html</content>
<visible>true</visible>
<width>160</width>
<height>120</height>
</initialWindow>
有什么想法吗?
I get the following error
302: Root content index.html file missing from package
adt -package -storetype pkcs12 -keystore Mycert.pfx Display/build/display.air Display/source/application.xml Display/source/index.html Display/source/icons Display/source/js Display/source/sounds
my application.xml is fine
<initialWindow>
<content>index.html</content>
<visible>true</visible>
<width>160</width>
<height>120</height>
</initialWindow>
any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
302:包中缺少根内容文件 - 应用程序描述符元素中引用的 SWF 或 HTML 文件必须通过将其包含在 ADT 命令行上列出的文件中来添加到包中。
还要确保 application.xml 中的拼写正确
302: Root content file missing from package - The SWF or HTML file referenced in the element of the application descriptor must be added to the package by including it in the files listed on the ADT command line.
Also make sure spelling is correct in your application.xml
我知道现在已经太晚了,但永远不知道谁在乎,我最近也遇到了同样的问题,最后我发现在命令行中,我的最后一个参数,谁获取 SWF 文件,有一个文件夹,所以,删除它,我只留下SWF名称,之后一切就OK了。
我的完整命令是:
...当然,.SWF 文件必须位于项目根目录中,与我编写 de adt 命令的位置相同。
I know it's too late for this, but one never know who care, and I recently has the same issue, and at last, I figure it out that in the command line, my last parameter, who get the SWF file, has a folder, so, remove it and I just left the SWF name, and thereafter everything it's ok.
My complete command was:
...and course, the .SWF file must be in the project root, same place where I write de adt command.
我现在也遇到同样的问题。我在 Adobe 帮助论坛上找到了讨论此问题的帖子:
http://forums.adobe.com/thread/91611
基本上是说在前面加上 -C adt 命令中的文件名是因为
I'm having the same problem right now. I found this thread on Adobe's help forum that discusses this issue:
http://forums.adobe.com/thread/91611
Basically it's saying to put -C before the filenames in the adt command because