Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task :app:lintVitalRelease FAILED #28804

Closed
hrezah opened this issue May 2, 2020 · 7 comments
Closed

Task :app:lintVitalRelease FAILED #28804

hrezah opened this issue May 2, 2020 · 7 comments
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@hrezah
Copy link

hrezah commented May 2, 2020

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

when I trying to release a apk using assembleRelease command . it shows the error below :

Task :app:lintVitalRelease FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:lintVitalRelease'.

Could not resolve all files for configuration ':app:lintClassPath'.
Could not find lint-gradle-26.5.2.jar (com.android.tools.lint:lint-gradle:26.5.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.5.2/lint-gradle-26.5.2.jar
Could not find lint-26.5.2.jar (com.android.tools.lint:lint:26.5.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint/26.5.2/lint-26.5.2.jar
Could not find lint-checks-26.5.2.jar (com.android.tools.lint:lint-checks:26.5.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/26.5.2/lint-checks-26.5.2.jar
Could not find lint-api-26.5.2.jar (com.android.tools.lint:lint-api:26.5.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-api/26.5.2/lint-api-26.5.2.jar
Could not find intellij-core-26.5.2.jar (com.android.tools.external.com-intellij:intellij-core:26.5.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.5.2/intellij-core-26.5.2.jar
Could not find kotlin-compiler-26.5.2.jar (com.android.tools.external.com-intellij:kotlin-compiler:26.5.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.5.2/kotlin-compiler-26.5.2.jar
Could not find uast-26.5.2.jar (com.android.tools.external.org-jetbrains:uast:26.5.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.5.2/uast-26.5.2.jar

React Native version:

React native V .62.2

Expected Results

relase apk as usual . without any error

@ghasemikasra39
Copy link

Same here with react native 0.62.2

System:
    OS: macOS 10.15.3
    CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
    Memory: 135.38 MB / 8.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 28, 29
      Build Tools: 28.0.3, 29.0.2
      System Images: android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6392135
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_232 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Any solution?

@ghasemikasra39
Copy link

ghasemikasra39 commented Jun 3, 2020

Dear @hrezah. From 2nd of May have you found any solution for this?

@ghasemikasra39
Copy link

Found a solution. Just delete android/app/build/outputs/apk/release/output.json

@stale
Copy link

stale bot commented Sep 2, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 2, 2020
@safaiyeh
Copy link
Contributor

safaiyeh commented Sep 2, 2020

@hrezah thank you for the issue and @ghasemikasra39 thank you for providing a solution!

Closing for now, feel free to open another issue if this comes up again

@safaiyeh safaiyeh closed this as completed Sep 2, 2020
@Lloyd1229
Copy link

请问解决了吗

@hufans
Copy link

hufans commented Apr 23, 2021

app -> build.gradle -> add lintOptions {
checkReleaseBuilds false
abortOnError false
} to android

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

5 participants