Html 为什么英特尔xdk不能在安卓3.1平板电脑上运行?

Html 为什么英特尔xdk不能在安卓3.1平板电脑上运行?,html,intel-xdk,android-3.1-honeycomb,Html,Intel Xdk,Android 3.1 Honeycomb,我正在使用intel xdk制作一个应用程序。它在许多设备上都能工作,但当我在安卓3.1平板电脑上试用时,它就不起作用了。窗格的标题不显示,并且未激发$.ui.ready。即使尝试使用此简单代码,也会失败。hello world按钮也不会显示: <!DOCTYPE html> <html><!--HTML5 doctype--> <head> <meta http-equiv="Content-type" content="text/htm

我正在使用intel xdk制作一个应用程序。它在许多设备上都能工作,但当我在安卓3.1平板电脑上试用时,它就不起作用了。窗格的标题不显示,并且未激发$.ui.ready。即使尝试使用此简单代码,也会失败。hello world按钮也不会显示:

<!DOCTYPE html>
<html><!--HTML5 doctype-->

<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="Pragma" content="no-cache">
<script type="text/javascript" charset="utf-8" src="intelxdk.js"></script>
<script type="text/javascript" language="javascript">
    var isIntel=window.intel&&window.intel.xdk
    // This event handler is fired once the intel libraries are ready
    function onDeviceReady() {
        //hide splash screen now that our app is ready to run
        intel.xdk.device.hideSplashScreen();
        setTimeout(function () {
            $.ui.launch();
        }, 50);
    }
    //initial event handler to detect when intel is ready to roll
    document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);
</script>
<script src="js/appframework.ui.min.js"></script>
<script>
    if(isIntel)
        $.ui.autoLaunch = false;
    $.ui.useOSThemes = false; //Change this to false to force a device theme
    $.ui.blockPageScroll();
    $(document).ready(function () {
        if ($.ui.useOSThemes && (!$.os.ios||$.os.ios7))
            $("#afui").removeClass("ios");
    });

    $.ui.ready(function(){
        alert('uiready');
    //App is ready lets check if a user exists.


});
</script>
<link href="css/icons.css" rel="stylesheet" type="text/css">
<link href="css/af.ui.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="afui" class="ios">
    <div id="header" class="header"></div>
    <div id="content" style="">
        <div class="panel" title="Main" id="main" selected="selected"
        style="">
            <a class="button" href="#" style="" data-appbuilder-object="button">Hello World</a>
        </div>
    </div>
    <div id="navbar" class="footer">
        <a href="#main" class="icon home">Home</a>
    </div>




</div>
</body>


</html>

有什么想法吗?

检查标题数据中的文本/html内容编码。对于内容编码:gzip,这将不起作用。也许.htaccess=>Modul mod_filter.c

你有没有让它工作过?它还可以在哪些设备上工作?电话?个人计算机?还有什么其他的操作系统?您是否安装了最新版本的XDK?XDK支持Android 3.1,所以它可能是您的代码中的错误,也可能是XDK中的错误。您是否尝试过通过usb进行调试?控制台上显示的是什么?