在安卓系统上:应用程序有时会出现应用程序错误,出现网络错误(file:///android_asset/www/index.html).
在其他答案中搜索,但不起作用。
下面是我在路径中的Appname.js:
android/native/src/common/Appname/Appname.java
public class appName extends WLDroidGap {
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
}
/**
* onWLInitCompleted is called when the Worklight runtime framework initialization is complete
*/
@Override
public void onWLInitCompleted(Bundle savedInstanceState){
super.loadUrl(getWebMainFilePath());
// Add custom initialization code after this line
}
}我如何才能做到这一点?
发布于 2014-03-24 19:35:53
index.html和appname.java/js是什么?
在Worklight6.1.0.x中,一个新的应用程序被赋予了index.html和main.js/main.css/appname.java
您是否重命名了任何项目文件?
application-descriptor.xml .xml中mainFile的值是什么?确保它是"index.html“。
https://stackoverflow.com/questions/22608179
复制相似问题