close

[Solved] Error:Execution failed for task ‘:app:lintVitalRelease’. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to run my app But I am facing following error Error:Execution failed for task ‘:app:lintVitalRelease’. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How This Error Occurs ?

I am trying to run my app But I am facing following error.

Error:Execution failed for task ‘:app:lintVitalRelease’. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $

How To Solve Error:Execution failed for task ‘:app:lintVitalRelease’. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING Error ?

  1. How To Solve Error:Execution failed for task ':app:lintVitalRelease'. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING Error ?

    To Solve Error:Execution failed for task ':app:lintVitalRelease'. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING Error You just need to add checkReleaseBuilds to false in your build.gradle. It will be look like: lintOptions { checkReleaseBuilds false } Now, rerun your app And now, your problem should be solved.

  2. Error:Execution failed for task ':app:lintVitalRelease'. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING

    To Solve Error:Execution failed for task ':app:lintVitalRelease'. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING Error You just need to add checkReleaseBuilds to false in your build.gradle. It will be look like: lintOptions { checkReleaseBuilds false } Now, rerun your app And now, your problem should be solved.

Solution 1: add checkReleaseBuilds false in build.gradle

You just need to add checkReleaseBuilds to false in your build.gradle. It will be look like.

android {
        lintOptions {
            checkReleaseBuilds false
            // Or, if you prefer, you can continue to check for errors in release builds,
            // but continue the build even when errors are found:
            abortOnError false
        }
    }

Now, rerun your app And now, your problem should be solved.

Solution 2: Invalidate Caches/Restart

File > Invalidate Caches/Restart… worked for me.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment