title: Phonegap Build app using Crosswalk crashing on Android
body: <p>My app built with Phonegap Build and using the Crosswalk plugin is crashing after a little bit of use on Android. I have absolutely no idea why this is happening after constant Googling and debugging attempts. Any help is appreciated.</p>
  
  <p>My logcat output right before and after the crash: </p>
  
  <pre><code>D/XWalkLib(26498): Pre init xwalk core in com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve class class org.xwalk.core.XWalkPreferences to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve method setValue to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve class class org.xwalk.core.XWalkPreferences to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve method setValue to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve class class org.xwalk.core.XWalkPreferences to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve method setValue to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve class class org.xwalk.core.XWalkPreferences to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve method setValue to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve object class org.crosswalk.engine.XWalkCordovaView to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve object class org.crosswalk.engine.XWalkCordovaResourceClient to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve method setResourceClient to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve object class org.crosswalk.engine.XWalkCordovaUiClient to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve method setUIClient to com.foo.bar.fooBAR
  W/ContextImpl(26498): Failed to ensure directory: /storage/extSdCard/Android/data/com.foo.bar/files
  W/ContextImpl(26498): Failed to ensure directory: /storage/extSdCard/Android/data/com.foo.bar/cache
  D/XWalkLib(26498): Reserve method setXWalkViewInternalVisibility to com.foo.bar.fooBAR
  D/XWalkLib(26498): Reserve method setSurfaceViewVisibility to com.foo.bar.fooBAR
  D/dalvikvm(26498): Trying to load lib /data/app-lib/com.foo.bar-1/libxwalkcore.so 0x42865d60
  D/dalvikvm(26498): Added shared lib /data/app-lib/com.foo.bar-1/libxwalkcore.so 0x42865d60
  D/dalvikvm(26498): Trying to load lib /data/app-lib/com.foo.bar-1/libxwalkdummy.so 0x42865d60
  D/dalvikvm(26498): Added shared lib /data/app-lib/com.foo.bar-1/libxwalkdummy.so 0x42865d60
  D/dalvikvm(26498): No JNI_OnLoad found in /data/app-lib/com.foo.bar-1/libxwalkdummy.so 0x42865d60, skipping init
  D/XWalkLib(26498): Post init xwalk core in com.foo.bar.fooBAR
  W/ContextImpl(26498): Failed to ensure directory: /storage/extSdCard/Android/data/com.foo.bar/cache
  W/chromium(26498): [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.foo.bar-1/libxwalkcore.so': couldn't get XW_Initialize function.
  W/chromium(26498): [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.foo.bar-1/libxwalkcore.so
  W/chromium(26498): [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.foo.bar-1/libxwalkdummy.so': couldn't get XW_Initialize function.
  W/chromium(26498): [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.foo.bar-1/libxwalkdummy.so
  </code></pre>
  
  <p>And the preferences and plugins in my <code>config.xml</code> file: </p>
  
  <pre><code>&lt;gap:config-file platform="android" parent="/manifest/application"&gt;
      &lt;activity android:launchMode="standard" /&gt;
    &lt;/gap:config-file&gt;
  
    &lt;preference name="permissions" value="none"/&gt;
    &lt;preference name="orientation" value="portrait"/&gt;
    &lt;preference name="target-device" value="handset"/&gt;
    &lt;preference name="fullscreen" value="false"/&gt;
    &lt;preference name="webviewbounce" value="true"/&gt;
    &lt;preference name="prerendered-icon" value="true"/&gt;
    &lt;preference name="stay-in-webview" value="false"/&gt;
    &lt;preference name="detect-data-types" value="true"/&gt;
    &lt;preference name="exit-on-suspend" value="false"/&gt;
  
    &lt;preference name="AutoHideSplashScreen" value="true"/&gt;
    &lt;preference name="ShowSplashScreenSpinner" value="false"/&gt;
    &lt;preference name="FadeSplashScreen" value="false"/&gt;
    &lt;preference name="SplashScreen" value="screen" /&gt;
  
    &lt;preference name="disable-cursor" value="false"/&gt;
    &lt;preference name="android-minSdkVersion" value="14"/&gt;
    &lt;preference name="android-installLocation" value="auto"/&gt;
  
    &lt;preference name="StatusBarStyle" value="blacktranslucent" /&gt;
    &lt;preference name="StatusBarOverlaysWebView" value="false" /&gt;
    &lt;preference name="StatusBarBackgroundColor" value="#008b95" /&gt;
  
    &lt;preference name="DisallowOverscroll" value="true" /&gt;
    &lt;preference name="android-build-tool" value="gradle" /&gt;
    &lt;preference name="UIWebViewBounce" value="false" /&gt;
  
    &lt;preference name="phonegap-version" value="cli-6.1.0" /&gt;
  
    &lt;platform name="android"&gt;  
      &lt;preference name="android-versionCode" value="1" /&gt;
  
      &lt;plugin name="cordova-build-architecture"      spec="https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.1"     source="git" /&gt;
  
      &lt;plugin name="cordova-plugin-crosswalk-webview" spec="https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git" source="git" /&gt;
      &lt;preference name="xwalkMode" value="embedded" /&gt;
      &lt;preference name="xwalkVersion" value="org.xwalk:xwalk_core_library_beta:19+" /&gt;
    &lt;/platform&gt;
  
    &lt;gap:plugin name="cordova-plugin-inappbrowser" source="npm"/&gt;
    &lt;gap:plugin name="org.apache.cordova.console"/&gt;
    &lt;gap:plugin name="org.apache.cordova.device"/&gt;
    &lt;gap:plugin name="org.apache.cordova.dialogs" /&gt;
    &lt;gap:plugin name="cordova-plugin-statusbar" source="npm"/&gt;
    &lt;gap:plugin name="cordova-plugin-splashscreen" source="npm"/&gt;
    &lt;gap:plugin name="pushwoosh-cordova-plugin" source="npm" /&gt;
    &lt;gap:plugin name="nl.x-services.plugins.launchmyapp" spec="3.0" source="pgb"&gt;
      &lt;param name="URL_SCHEME" value="mosaicties" /&gt;
    &lt;/gap:plugin&gt;
    &lt;plugin name="com.sharinglabs.cordova.plugin.cache" spec="1.0.0" source="pgb" /&gt;
    &lt;plugin name="org.apache.cordova.file-transfer" spec="0.5.0" source="pgb" /&gt;
    &lt;plugin name="com.virtualartifacts.webintent" spec="1.0.0" source="pgb" /&gt;
  </code></pre>
  
  <p>Any insight or help that anyone can provide would be great.</p>