Intermittent automation test failure: Could not find lint-gradle-27.0.1.jar (com.android.tools.lint:lint-gradle:27.0.1).

Open
#1,423 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin

Research direction

Start with the linked Treeherder log and the automation configuration for the :app:lint task, focusing on the localhost:8081 Nexus repository used for dependency resolution. Reproduce the job or run :app:lint and verify that the listed Android Lint artifacts resolve reliably; done means the automation test no longer fails because these dependencies cannot be found.

Written by the indexing model from the issue text.

Description

🐞 bug

Log: https://treeherder.mozilla.org/logviewer?job_id=326806503&repo=reference-browser

Some unlogged connectivity issues?

[task 2021-01-15T12:38:50.738Z] FAILURE: Build failed with an exception.
[task 2021-01-15T12:38:50.738Z] 
[task 2021-01-15T12:38:50.738Z] * What went wrong:
[task 2021-01-15T12:38:50.738Z] Execution failed for task ':app:lint'.
[task 2021-01-15T12:38:50.738Z] > Could not resolve all files for configuration ':app:lintClassPath'.
[task 2021-01-15T12:38:50.738Z]    > Could not find lint-gradle-27.0.1.jar (com.android.tools.lint:lint-gradle:27.0.1).
[task 2021-01-15T12:38:50.738Z]      Searched in the following locations:
[task 2021-01-15T12:38:50.738Z]          http://localhost:8081/nexus/content/repositories/google/com/android/tools/lint/lint-gradle/27.0.1/lint-gradle-27.0.1.jar
[task 2021-01-15T12:38:50.738Z]    > Could not find lint-27.0.1.jar (com.android.tools.lint:lint:27.0.1).
[task 2021-01-15T12:38:50.740Z]      Searched in the following locations:
[task 2021-01-15T12:38:50.740Z]          http://localhost:8081/nexus/content/repositories/google/com/android/tools/lint/lint/27.0.1/lint-27.0.1.jar
[task 2021-01-15T12:38:50.740Z]    > Could not find lint-checks-27.0.1.jar (com.android.tools.lint:lint-checks:27.0.1).
[task 2021-01-15T12:38:50.740Z]      Searched in the following locations:
[task 2021-01-15T12:38:50.740Z]          http://localhost:8081/nexus/content/repositories/google/com/android/tools/lint/lint-checks/27.0.1/lint-checks-27.0.1.jar
[task 2021-01-15T12:38:50.740Z]    > Could not find lint-api-27.0.1.jar (com.android.tools.lint:lint-api:27.0.1).
[task 2021-01-15T12:38:50.740Z]      Searched in the following locations:
[task 2021-01-15T12:38:50.740Z]          http://localhost:8081/nexus/content/repositories/google/com/android/tools/lint/lint-api/27.0.1/lint-api-27.0.1.jar
[task 2021-01-15T12:38:50.740Z]    > Could not find intellij-core-27.0.1.jar (com.android.tools.external.com-intellij:intellij-core:27.0.1).
[task 2021-01-15T12:38:50.740Z]      Searched in the following locations:
[task 2021-01-15T12:38:50.740Z]          http://localhost:8081/nexus/content/repositories/google/com/android/tools/external/com-intellij/intellij-core/27.0.1/intellij-core-27.0.1.jar
[task 2021-01-15T12:38:50.740Z]    > Could not find kotlin-compiler-27.0.1.jar (com.android.tools.external.com-intellij:kotlin-compiler:27.0.1).
[task 2021-01-15T12:38:50.740Z]      Searched in the following locations:
[task 2021-01-15T12:38:50.740Z]          http://localhost:8081/nexus/content/repositories/google/com/android/tools/external/com-intellij/kotlin-compiler/27.0.1/kotlin-compiler-27.0.1.jar
[task 2021-01-15T12:38:50.740Z]    > Could not find uast-27.0.1.jar (com.android.tools.external.org-jetbrains:uast:27.0.1).
[task 2021-01-15T12:38:50.740Z]      Searched in the following locations:
[task 2021-01-15T12:38:50.740Z]          http://localhost:8081/nexus/content/repositories/google/com/android/tools/external/org-jetbrains/uast/27.0.1/uast-27.0.1.jar
[task 2021-01-15T12:38:50.740Z]    > Could not find aapt2-proto-0.4.0.jar (com.android.tools.build:aapt2-proto:0.4.0).
[task 2021-01-15T12:38:50.740Z]      Searched in the following locations:
[task 2021-01-15T12:38:50.740Z]          http://localhost:8081/nexus/content/repositories/google/com/android/tools/build/aapt2-proto/0.4.0/aapt2-proto-0.4.0.jar
Dominant language
Kotlin
Stars
668
Forks
198
Avg merge
8h 47m
Merged PRs (30d)
53

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla-mobile/reference-browser

All issues in mozilla-mobile/reference-browser

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.