简体   繁体   中英

How to setup this gradle dependency?

In a crosswalk project I have the following dependency:

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

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

This works, however I need version 13 which not available through the method above. I need to include:

https://download.01.org/crosswalk/releases/crosswalk/android/canary/13.41.313.0/crosswalk-13.41.313.0.aar

How would I set this up without downloading it locally first?

As suggested on this SO post, it's not supported so you have 2 options:

  1. Write a gradle task that downloads it to a local lib directory
  2. Manually add it to a maven repo that you have control of, and then depend on it as you would any other maven dependency.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM