我有一个现有的项目超过半年没有开发。 现在我需要支持它。 我已经更新了Titanium SDK和项目中使用的所有其他库。 但在设备上启动应用程序后,我有运行时错误。错误的 的截图:加速器钛运行时错误
我很惊讶,因为这是应用程序的准备生产的稳定版本。所以只有在更新库之后才会出现此错误。 下面的代码的某些部分:
这是 '索引' 视图:
<?xml version="1.0"?>
<Alloy>
<Widget id="drawer" src="nl.fokkezb.drawer">
<Window module="xp.ui" role="leftWindow" >
......
</Window>
<NavigationWindow platform="ios" role="centerWindow">
<Require type="view" src="Home"/>
</NavigationWindow>
<Window module="xp.ui" platform="android" role="centerWindow" home="Home">
<Require type="view" src="Home"/>
</Window>
</Widget>
</Alloy>
和HOME.xml
<Alloy>
<Window id="winHome" platform="ios" class="container whiteBackground no-navbar" navBarHidden="true" layout="vertical" opacity="1">
<Require type="view" src="homeContent"></Require>
</Window>
<Window id="winHome" platform="android" class="container whiteBackground no-navbar" navBarHidden="true" layout="vertical" opacity="1">
<Require type="view" src="homeContent"></Require>
</Window>
</Alloy>
和homeContent:
<Alloy>
<View id="winHomeContent" class="container whiteBackground" layout="composite" visible = "false">
<View class="ver">
.........
</View>
<View bottom="0" class="h-size">
<Require type="view" src="homeFooter"/>
</View>
</View>
</Alloy>
我见“索引”和主页视图都有“窗口”标签。 但是这个确切的代码工作得更早。
你截图的网址需要许可! –
对不起,现在应该是固定的 –
我把它添加到帖子,而不是 –