1、build.gradle

repositories {
  maven {
    url ‘https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
  }
}

compile ‘org.xwalk:xwalk_core_library:18.48.477.13’

2、active_main.xml

<org.xwalk.core.XWalkView android:id="@+id/activity_main"
  xmlns:android=“http://schemas.android.com/apk/res/android"
  android:layout_width=“fill_parent”
  android:layout_height=“fill_parent”>
</org.xwalk.core.XWalkView>

3、MainActivity.java

 

mXWalkView = (XWalkView) findViewById(R.id.activity_main);
mXWalkView.load(“https://blueimp.github.io/jQuery-File-Upload/", null);

@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  mXWalkView.onActivityResult(requestCode, resultCode, data);

 
4、AndroidManifest.xml

android:hardwareAccelerated=“true”