Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RusanNg opened this issue Dec 21, 2017 · 0 comments
Open

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

RusanNg opened this issue Dec 21, 2017 · 0 comments

Comments

@RusanNg
Copy link

RusanNg commented Dec 21, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant