Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

':app:lintVitalReleasePro'. #30

Open
weiggle opened this issue Sep 14, 2021 · 0 comments
Open

':app:lintVitalReleasePro'. #30

weiggle opened this issue Sep 14, 2021 · 0 comments

Comments

@weiggle
Copy link

weiggle commented Sep 14, 2021

when i use hilt in my multi module project, the debug mode is successful, but when in "./gradlew clean assembleReleasePro "
it broked by error in Task :app:lintVitalReleasePro FAILED
details:
Error: MyApplication must extend android.app.Application [Instantiatable]
android:name=".MyApplication"
~~~~~~~~~~~~~~~~~~~

Explanation for issues of type "Instantiatable":
Activities, services, broadcast receivers etc. registered in the manifest
file (or for custom views, in a layout file) must be "instantiatable" by
the system, which means that the class must be public, it must have an
empty public constructor, and if it's an inner class, it must be a static
inner class.

1 errors, 0 warnings

FAILURE: Build failed with an exception.

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

Lint found fatal errors while assembling a release target.

To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
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
}
}
...

i try to do lintOptions in my project, but it's not userful,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant