Android demo browser use Android Studio runtime error

classic Classic list List threaded Threaded
3 messages Options
fan
Reply | Threaded
Open this post in threaded view
|

Android demo browser use Android Studio runtime error

fan
Hi,
     I have followed README add Additional dependencies of Cling Core on Android,but when it run, it get
     FATAL EXCEPTION: main
    java.lang.NoClassDefFoundError: org.eclipse.jetty.servlet.ServletContextHandler
            at org.fourthline.cling.transport.impl.jetty.JettyServletContainer.registerServlet(JettyServletContainer.java:94)
            at org.fourthline.cling.transport.impl.AsyncServletStreamServerImpl.init(AsyncServletStreamServerImpl.java:69)
            at org.fourthline.cling.transport.RouterImpl.startAddressBasedTransports(RouterImpl.java:434)
            at org.fourthline.cling.transport.RouterImpl.enable(RouterImpl.java:132)
            at org.fourthline.cling.android.AndroidRouter.enable(AndroidRouter.java:88)
            at org.fourthline.cling.UpnpServiceImpl.<init>(UpnpServiceImpl.java:87)
            at org.fourthline.cling.android.AndroidUpnpServiceImpl$1.<init>(AndroidUpnpServiceImpl.java:54)
            at org.fourthline.cling.android.AndroidUpnpServiceImpl.onCreate(AndroidUpnpServiceImpl.java:54)
            at android.app.ActivityThread.handleCreateService(ActivityThread.java:2254)
            at android.app.ActivityThread.access$1600(ActivityThread.java:124)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4456)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
            at dalvik.system.NativeStart.main(Native Method)
thanks
Reply | Threaded
Open this post in threaded view
|

Re: Android demo browser use Android Studio runtime error

DREDD112
You don't have all the libs, cling is dependant on. See the dependencies list.
fan
Reply | Threaded
Open this post in threaded view
|

Re: Android demo browser use Android Studio runtime error

fan
I see it , these dependent jar files why not included in cling 2.0 release