के साथ कॉर्डोवा वेबव्यू टाइमआउट त्रुटि त्रुटि मैं एक साधारण एप्लिकेशन की कोशिश कर रहा हूं जहां मैं एंड्रॉइड में एक देशी रैपर के अंदर अपनी मोबाइल वेबसाइट प्रदर्शित करना चाहता हूं। मैं प्रलेखन का पालन कर रहा हूं जहां मैं केवल एक ही परिवर्तन लोडउआरएल के साथ है, जहां कॉर्डोवावेब व्यू को इंडेक्स फ़ोल्डर से इंडेक्स.html से लोड करने की बजाय, मैं इसे मोबाइल वेबसाइट पर इंगित करूँगा, https://www.google.comएंड्रॉइड
वेबव्यू ऐप आता है लेकिन एक कॉर्डोवा वेब दृश्य TIMEOUT त्रुटि प्राप्त हुई है। निम्नलिखित मेरी कोड के स्निपेट रहे
public class CordovaWebViewActivity extends Activity implements CordovaInterface{
private CordovaWebView webView;
private static final String TAG = "CORDOVA_WEBVIEW_ACTIVITY";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cordova_web_view);
webView = (CordovaWebView)findViewById(R.id.webview);
webView.loadUrl("https://www.google.com");
}
@Override
public Activity getActivity() {
return this;
}
//... other overrided methods from interface
}
और जब मैं कोड चलाने के लिए, मैं अपने कंसोल में निम्न त्रुटि डी डी एम एस करने के
07-31 20:56:08.737: D/dalvikvm(2016): GC_FOR_ALLOC freed 42K, 6% free 2780K/2928K, paused 23ms, total 25ms
07-31 20:56:08.746: I/dalvikvm-heap(2016): Grow heap (frag case) to 3.887MB for 1127536-byte allocation
07-31 20:56:08.777: D/dalvikvm(2016): GC_FOR_ALLOC freed 2K, 4% free 3879K/4032K, paused 36ms, total 36ms
07-31 20:56:08.836: D/CordovaWebView(2016): CordovaWebView is running on device made by: unknown
07-31 20:56:08.836: D/JsMessageQueue(2016): Set native->JS mode to 2
07-31 20:56:08.996: D/gralloc_goldfish(2016): Emulator without GPU emulation detected.
07-31 20:56:09.376: E/cutils-trace(2016): Error opening trace file: No such file or directory (2)
07-31 20:56:09.687: D/TilesManager(2016): Starting TG #0, 0x2a26cc40
07-31 20:56:28.874: E/CordovaWebView(2016): CordovaWebView: TIMEOUT ERROR!
मैं अपने/res/एक्सएमएल फ़ोल्डर में config.xml है निम्नलिखित
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.helloCordova" version="2.0.0" xmlns="http://www.w3.org/ns/widgets">
<name>Hello Cordova</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="[email protected]" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<feature name="App">
<param name="android-package" value="org.apache.cordova.App" />
</feature>
<access origin="*" />
<preference name="useBrowserHistory" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
</widget>
और मैं भी एक cordova.xml है मेरी/में रेस/xml फ़ोल्डर है
<?xml version="1.0" encoding="utf-8"?>
<cordova>
<access origin="http://127.0.0.1*"/> <!-- allow local pages -->
<access origin="https://www.google.com" />
<log level="DEBUG"/>
<preference name="useBrowserHistory" value="false" />
</cordova>
कृपया मुझे क्या याद आ रही है या गलत कर रहा है?
क्या आपको समाधान मिला है। मुझे एक ही समस्या का सामना करना पड़ रहा है। कृपया –