I have successfully implemented crosswalk webview project inside an Android studio project. Basically by following this link: https://diego.org/2015/01/07/embedding-crosswal
I tried integrating crosswalk lite with cordova android project. When I generated the APK file, it ran perfectly. With normal crosswalk my app size was 26MB, with crosswalk lite its now 14MB.
I downloaded crosswalk-lite-cordova-10.39.232.1-arm.zip and extracted it in a folder. Then I had to download cordova lite webview to link cordova with xwalk webview.
Once both downloaded:
cd /path/to/crosswalk-cordova-android/framework
ln -s /path/to/crosswalk-webview-unzipped-folder/
Then create a cordova project by executing this command:
./bin/create project_crosswalk
To build:
./cordova/build
I hope this helps you.
xwalk_core_library
I had the same issue, this is how I resolved.
I followed the same tutorial, use this repository and dependency instead.
repositories {
maven {
url 'https://download.01.org/crosswalk/releases/crosswalk-lite/android/maven2/'
}
}
dependency
compile 'org.xwalk:xwalk_core_library_canary:17.46.460.1'
Change your MainActivity.java
like this
public class MainActivity extends XWalkActivity {
XWalkView mXWalkView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void initXWalkView() {
mXWalkView = (XWalkView) findViewById(R.id.activity_main);
mXWalkView.load("file:///android_asset/index-mobile.html", null);
}
@Override
protected void onXWalkReady() {
initXWalkView();
}
}
Here, for more info.