4thline / cling

UPnP/DLNA library for Java and Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Studio Gradle dependency

AlexAndro1 opened this issue · comments

I'm trying to use the Android samples in Android Studio but using Gradle dependencies. I'm having errors importing org.eclipse.jetty.serve.*
I already included the repos as:

repositories {
        google()
        jcenter()
        mavenCentral()
        maven {
            url "https://repo.eclipse.org/content/repositories/paho-releases/"
        }
        maven{
            url "http://4thline.org/m2"
        }
    }

then

`compile group: 'org.fourthline.cling', name: 'cling-core', version: '2.1.1'`

and worked.

but I don't know how to compile in dependency org.eclipse.jetty.
I have tried various combinations as compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '1.1.0' and many others but with no success. Can u please tell me how to corectly import everything?


I have found it myself:


compile group: 'org.eclipse.jetty', name: 'jetty-server', version:'8.1.18.v20150929'
    compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version:'8.1.18.v20150929'
    compile group: 'org.eclipse.jetty', name: 'jetty-client', version:'8.1.18.v20150929'