4thline / cling

UPnP/DLNA library for Java and Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SHA1 digest error for javax/servlet/http/HttpServlet.class

RusanNg opened this issue · comments

commented

Hi,

Thanks for you provide cling for us first.

I have a project using cling, but there is a trouble when I run the project to install into my device.

Below is gradle console log:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithInstantRunForDevDebug'.
> com.android.build.api.transform.TransformException: java.lang.SecurityException: java.lang.SecurityException: SHA1 digest error for javax/servlet/http/HttpServlet.class

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 43s

It said the issus cause by HttpServlet.class, and I found that this class belong to a jar named javax.servlet-3.0.0.v201112011016.jar. Then I found that this library was compiler by cling. So I submit a issue there.

ps, when I disable the function 'Enable Instant Run', everything become normal.

Android Studio 3.0.1
Gradle 4.4.1
Java jdk1.8.0_152

implementation "org.fourthline.cling:cling-core:2.1.2-SNAPSHOT"
implementation "org.fourthline.cling:cling-support:2.1.2-SNAPSHOT
implementation "org.eclipse.jetty:jetty-server:8.1.17.v20150415"
implementation "org.eclipse.jetty:jetty-servlet:8.1.17.v20150415"
implementation "org.eclipse.jetty:jetty-client:8.1.17.v20150415"
compileOnly 'javax.enterprise:cdi-api:1.2'

Regards!

Rusan