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
}
}
'프로그래밍 > Android' 카테고리의 다른 글
[Android] https 통신을 위해 해야할것 (0) | 2022.01.05 |
---|---|
[Android] 현재 프로젝트의 App Version 가져오기 (0) | 2022.01.05 |
YoungsBook 앱 개인정보 처리방침 (0) | 2021.12.17 |
[Android] 플레이스토어 앱 출시 (0) | 2021.12.17 |
[Android] RatingBar XML 속성 (0) | 2021.12.17 |
댓글