upnp - Error when running cling 2.0 Browser example in Android -


i trying use cling 2.0 on android 4.1 , upnp renderer , server. following error when the browser example runs:

process: com.mike.cling_test, pid: 8846     java.lang.noclassdeffounderror: failed resolution of: lorg/eclipse/jetty/server/server; @ org.fourthline.cling.transport.impl.jetty.jettyservletcontainer.resetserver(jettyservletcontainer.java:165) @ org.fourthline.cling.transport.impl.jetty.jettyservletcontainer.<init>(jettyservletcontainer.java:57)             @ org.fourthline.cling.transport.impl.jetty.jettyservletcontainer.<clinit>(jettyservletcontainer.java:55) 

i have googled error , found cling user forum

i have followed steps outlined in the answer, still same error. online manual not seem 1 should using. there pdf of version 2.0 manual?

i had same issue, problem cling provided without jetty library.

you have use maven dependency this:

        <dependency>             <groupid>org.eclipse.jetty</groupid>             <artifactid>jetty-server</artifactid>             <version>${jetty.version}</version>         </dependency>         <dependency>             <groupid>org.eclipse.jetty</groupid>             <artifactid>jetty-servlet</artifactid>             <version>${jetty.version}</version>         </dependency>         <dependency>             <groupid>org.eclipse.jetty</groupid>             <artifactid>jetty-client</artifactid>             <version>${jetty.version}</version>         </dependency> 

or if, me, use android studio, update gradle script:

dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:22.2.1'     compile files('src/libs/cling-core-2.0.1.jar')     compile files('src/libs/cling-support-2.0.1.jar')     compile files('src/libs/seamless-http-1.1.0.jar')     compile files('src/libs/seamless-util-1.1.0.jar')     compile files('src/libs/seamless-xml-1.1.0.jar')     compile 'org.eclipse.jetty:jetty-servlet:8.1.8.v20121106'     compile 'org.eclipse.jetty:jetty-client:8.1.8.v20121106'     compile 'org.eclipse.jetty:jetty-server:8.1.8.v20121106'     } 

hope help.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -