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>
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
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
android:hardwareAccelerated="true"