Release only problem | app:lintVitalRelease

Issue

got a problem with gradle build, specifically in release mode. Everything works fine in debug. I couldn’t find anything about this issue.
Any idea about the issue?

> Stack trace:
FAILURE: Build failed with an exception.


    FAILURE: Build failed with an exception.
        * What went wrong:
        Execution failed for task ':app:lintVitalRelease'.
        Lint infrastructure error
          Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.android.tools.lint.gradle.api.ReflectiveLintRunner.runLint(ReflectiveLintRunner.kt:38)
            at com.android.build.gradle.tasks.LintBaseTask.runLint(LintBaseTask.java:114)
            at com.android.build.gradle.tasks.LintPerVariantTask.lint(LintPerVariantTask.java:63)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
            at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:49)
            at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42)
            at ...
     ...
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
            ... 109 more

Solution

I have solved it on my own. Firstly, I checked Android Studio, config of that, java, gradle, but the problem was easy. Just reinstalled SDK.

Answered By – SenyaOhar

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published