본문 바로가기
프로그래밍/Android

[Android] Execution failed for task ':app:lint'. 에러 해결법

by Youngs_ 2021. 12. 18.
Execution failed for task ':app:lintVitalAnalyzeRelease'.
> Could not resolve all dependencies for configuration ':app:releaseUnitTestCompileClasspath'.
  The project declares repositories, effectively ignoring the repositories you have declared in the settings.
  You can figure out how project repositories are declared by configuring your build to fail on project repositories.
  See https://docs.gradle.org/7.3/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories for details.
   > Could not find junit:junit:.
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

release모드로 apk를 빌드할때 위와같은 에러가 나오면

아래부분을 "build.gradle" 추가하면 빌드 성공한다.

 

 

android {

 

    lintOptions {

        abortOnError false

    }

}

댓글