找到你要的答案

Q:Android Cordova index.html not found but it has been loaded in the backgroud

Q:Android科尔多瓦index.html但没有发现它已加载的背景

I have a kinda weired problem. I startet a cordova project and everything went fine. Even running the app on an actual device did not spit up any issues.

Now I tried to run the applicatio in the android emulator. Now I'm getting the message that the index.htm could not be found. But if I wait for a few seconds the index.htm is loaded properly and is shown behind the 'index.htm not found' messagebox. I added a screenshot to show you what I mean.

Android emulatior screenshot

This is my current folder structure:

App/
    hooks/
    platforms/
    plugins/
    resources/
    www/
        index.htm
    config.xml

Hope you can help me with this.

我有一个很奇怪的问题。我开始一个科尔多瓦项目,一切都很好。即使运行在实际设备上的应用程序没有吐出任何问题。

Now I tried to run the applicatio in the android emulator. Now I'm getting the message that the index.htm could not be found. But if I wait for a few seconds the index.htm is loaded properly and is shown behind the 'index.htm not found' messagebox. I added a screenshot to show you what I mean.

Android emulatior截图

这是我目前的文件夹结构:

App/
    hooks/
    platforms/
    plugins/
    resources/
    www/
        index.htm
    config.xml

希望你能帮助我。

answer1: 回答1:

your actual path is here

App Name\platforms\android\assets\www

in this www index.html main file is here what aver you will write it's reflect in your app.

你的实际路径在这里

应用程序名称\ \ \资产\ WWW Android平台

在这个WWW index.html主文件这里断言你会写的反映在你的应用程序。

android  cordova