Kapitein Witbaard
Kapitein Witbaard

Reputation: 1026

How to embed the crosswalk project in an existing IntelliJ IDEA 15 Android project

I've got a custom android project in IntelliJ IDEA 15. We are using the default Android webview now, but want to replace it with crosswalks XWalkView.

I've read and tried a lot of options, but can't get the XWalkView to resolve. What have I tried?

  1. Following this tutorial: https://crosswalk-project.org/documentation/android/embedding_crosswalk.html

    • downloading the source crosswalk-17.46.448.10.zip
    • importing xwalk_core_library as a new library project in IntelliJ
    • build the project
    • add this project as a library dependency in my project
  2. Try to add the maven dependency to (https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/17.46.448.10/) to the existing android project

Upvotes: 0

Views: 305

Answers (1)

cprakashagr
cprakashagr

Reputation: 761

In your build.gradle file, add this:

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

And to the dependencies,

dependencies {
    compile 'org.xwalk:xwalk_core_library:10.39.235.15'
}

Bingo!

Upvotes: 0

Related Questions