1

我是新来的...

我正在使用英特尔 XDK

我在 PHP 中创建了一个默认页面,但是当我上传它时,我得到了:

404:英特尔 XDK 找不到您的应用程序您的应用程序目录中有 index.html 吗?

我尝试了像这样重定向到 php 的 html 页面:

http://www.jassimrahma.com/yalla.bahrain/index.php" />

但它只是在 Android 上显示为空白页。

我也上传了我的热门页面,我在那里没有任何问题。这是网址

http://www.jassimrahma.com/yalla.bahrain/index.html

请问我该如何解决这个问题..

4

2 回答 2

0

如果你只是想让网页的内容显示在应用程序中,你可以创建一个空白项目并设置:

window.location = "http://www.jassimrahma.com/yalla.bahrain/index.php"; 

下面是整个 index.html 文件,这将在 XDK 中工作,您将能够构建 Android 应用程序。

<!DOCTYPE html>
<html>
<head>
    <title>XDK</title>
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0;" />
    <script src="intelxdk.js"></script>
    <script>
        window.location = "http://www.jassimrahma.com/yalla.bahrain/index.php";        
        document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);               
        function onDeviceReady(){
            intel.xdk.device.hideSplashScreen();   
        }
    </script>            
</head>
<body> 
</body>
</html>
于 2014-04-01T18:28:54.393 回答
0

这不仅仅是你的问题。这是英特尔 XDK 中的一个错误。

在此处输入图像描述

我们只能等他们修好了...

我正在做的是关闭并重新打开 Intel XDK ......是的,这有点烦人......

更多信息在这里。

于 2015-06-29T16:57:10.167 回答