【问题标题】:Cfbuilder Android net::err_file_not_found (file:///android_asset/www/test1.cfm)cfbuilder Android net::err_file_not_found (file:///android_asset/www/test1.cfm)
【发布时间】:2016-07-20 19:20:36
【问题描述】:

我编写了一个完整的应用程序,使用 chrome http://localhost:8600//

当我建立电话差距时,我得到了错误

Android net::err_file_not_found (file:///android_asset/www/xxxxxx.cfm

所以我想哦,大妈,我搞砸了什么。这是我的第一个应用程序。

所以我想让我们回到基本的。

所以我创建了一个新项目。

我只创建了 2 个页面 index.cfm 和 test1.cfm

index.cfm

    <html>

        <head>

        </head>



        <a href="./test1.cfm">test</a>

    </html>

test1.cfm

<html>

    <head>

    </head>



    <a href="./index.cfm">index</a>

</html>

然后我构建了应用程序。

下载的APK

安装在 samsung note 3 和 samsung note 10.1 上

当我运行应用程序时。我看到了我在测试 1 上单击(触摸)的超链接。

然后我得到以下错误然后应用程序关闭

Cfbuilder Android net::err_file_not_found (file:///android_asset/www/test1.cfm)

那么,一旦构建到 android,我需要从 index.cfm 做些什么来加载其他页面。

我是不是缺少标签,java。东西。

没有比我能到达这里更多的“回归基本”了

任何帮助都会很棒。度过一个愉快的夜晚

【问题讨论】:

    标签: android cordova coldfusion-11 coldfusionbuilder


    【解决方案1】:

    好的,经过大量测试,我已经弄清楚了。

    任何想要链接到另一个页面的页面都需要以下内容

    <cfclientsettings detectdevice="true" enabledeviceapi="true"/>
    
    <cfclient>
    
        <cfscript>
    
        </cfscript>
    
    </cfclient>
    

    所以我的页面现在看起来像这样

    index.cfm

    <!doctype html>
    
    <cfclientsettings detectdevice="true" enabledeviceapi="true"/>
    
    <cfclient>
    
        <cfscript>
    
        </cfscript>
    
    </cfclient>
    
    <html>
    
        <head>
    
        </head>
    
    
    
        <a href="./test1.cfm">test 1</a>
    
    
    
    </html>
    

    test1.cfm

    <!doctype html>
    
    <cfclientsettings detectdevice="true" enabledeviceapi="true"/>
    
    <cfclient>
    
        <cfscript>
    
        </cfscript>
    
    </cfclient>
    
    <html>
    
        <head>
    
        </head>
    
    
    
        <a href="./index.cfm">index</a>
    
    
    
        <br><br>
    
        <a href="./test3.cfm">test3</a>
    
    </html>
    

    我真的希望这对其他人有帮助。

    祝你有美好的一天

    【讨论】:

      猜你喜欢
      • 2017-10-24
      • 2015-06-21
      • 2019-09-20
      • 2020-07-05
      • 1970-01-01
      • 1970-01-01
      • 2018-03-18
      • 2015-02-14
      • 1970-01-01
      相关资源
      最近更新 更多