Cfbuilder Android net::找不到错误文件(file:///android_asset/www/test1.cfm)
我已经编写了一个完整的应用程序,使用chrome非常有效/ 当我建立到电话的差距时,我得到了错误 Android net::找不到错误文件(file:///android_asset/www/xxxxxx.cfm 所以我想哦,天哪,我搞砸了什么。这是我的第一个应用程序 所以我想让我们回到基础 所以我创建了一个新项目 我只创建了两个页面index.cfm和test1.cfm index.cfmCfbuilder Android net::找不到错误文件(file:///android_asset/www/test1.cfm),android,cordova,coldfusion-11,coldfusionbuilder,Android,Cordova,Coldfusion 11,Coldfusionbuilder,我已经编写了一个完整的应用程序,使用chrome非常有效/ 当我建立到电话的差距时,我得到了错误 Android net::找不到错误文件(file:///android_asset/www/xxxxxx.cfm 所以我想哦,天哪,我搞砸了什么。这是我的第一个应用程序 所以我想让我们回到基础 所以我创建了一个新项目 我只创建了两个页面index.cfm和test1.cfm index.cfm <html> <head> <
<html>
<head>
</head>
<a href="./test1.cfm">test</a>
</html>
<!doctype html>
<cfclientsettings detectdevice="true" enabledeviceapi="true"/>
<cfclient>
<cfscript>
</cfscript>
</cfclient>
<html>
<head>
</head>
<a href="./test1.cfm">test 1</a>
</html>
test1.cfm
<html>
<head>
</head>
<a href="./index.cfm">index</a>
</html>
<!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>
然后我构建了这个应用程序
下载的APK
安装在三星note 3和三星note 10.1上
当我运行应用程序时,我看到了在测试1上单击(触摸)的超链接
然后我得到以下错误,然后应用程序关闭
Cfbuilder Android net::找不到错误文件(file:///android_asset/www/test1.cfm)
那么,一旦构建到android上,我需要从index.cfm加载其他页面做什么呢
我丢失了标签,java什么的
没有比我在这里得到的更多的“回到基础”
任何帮助都会很好。祝您愉快好的,经过大量测试,我已经找到了答案 任何想要链接到另一个页面的页面都需要以下内容
<cfclientsettings detectdevice="true" enabledeviceapi="true"/>
<cfclient>
<cfscript>
</cfscript>
</cfclient>
所以我的页面现在看起来像这样
index.cfm
<html>
<head>
</head>
<a href="./test1.cfm">test</a>
</html>
<!doctype html>
<cfclientsettings detectdevice="true" enabledeviceapi="true"/>
<cfclient>
<cfscript>
</cfscript>
</cfclient>
<html>
<head>
</head>
<a href="./test1.cfm">test 1</a>
</html>
test1.cfm
<html>
<head>
</head>
<a href="./index.cfm">index</a>
</html>
<!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>
我真的希望这能帮助别人
祝你度过愉快的一天好的,经过大量测试,我已经找到了答案 任何想要链接到另一个页面的页面都需要以下内容
<cfclientsettings detectdevice="true" enabledeviceapi="true"/>
<cfclient>
<cfscript>
</cfscript>
</cfclient>
所以我的页面现在看起来像这样
index.cfm
<html>
<head>
</head>
<a href="./test1.cfm">test</a>
</html>
<!doctype html>
<cfclientsettings detectdevice="true" enabledeviceapi="true"/>
<cfclient>
<cfscript>
</cfscript>
</cfclient>
<html>
<head>
</head>
<a href="./test1.cfm">test 1</a>
</html>
test1.cfm
<html>
<head>
</head>
<a href="./index.cfm">index</a>
</html>
<!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>
我真的希望这能帮助别人
祝你今天愉快