[ADDED] lint-baseline.xml to ignore MainActivity [Instantiatable] lint#337
Merged
hossain-khan merged 1 commit intomainfrom Jul 21, 2025
Merged
[ADDED] lint-baseline.xml to ignore MainActivity [Instantiatable] lint#337hossain-khan merged 1 commit intomainfrom
lint-baseline.xml to ignore MainActivity [Instantiatable] lint#337hossain-khan merged 1 commit intomainfrom
Conversation
… lint False positive. https://github.com/hossain-khan/android-remote-notify/actions/runs/16417881446/job/46388249169 ``` > Task :app:lintDebug FAILED Lint found 1 error, 85 warnings. First failure: Error: /home/runner/work/android-remote-notify/android-remote-notify/app/src/main/AndroidManifest.xml:20: Error: This class should provide a default constructor (a public constructor with no arguments) (dev.hossain.remotenotify.MainActivity) [Instantiatable] android:name="dev.hossain.remotenotify.MainActivity" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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. If you use a custom AppComponentFactory to instantiate app components yourself, consider disabling this Lint issue in order to avoid false positives. The full lint text report is located at: /home/runner/work/android-remote-notify/android-remote-notify/app/build/intermediates/lint_intermediate_text_report/debug/lintReportDebug/lint-results-debug.txt gradle/actions: Writing build results to /home/runner/work/_temp/.gradle-actions/build-results/__run-1753103395126.json [Incubating] Problems report is available at: file:///home/runner/work/android-remote-notify/android-remote-notify/build/reports/problems/problems-report.html FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:lintDebug'. > Lint found errors in the project; aborting build. Fix the issues identified by lint, or create a baseline to see only new errors. To create a baseline, run `gradlew updateLintBaseline` after adding the following to the module's build.gradle file: ``` android { lint { baseline = file("lint-baseline.xml") } } ``` For more details, see https://developer.android.com/studio/write/lint#snapshot Lint found 1 error, 85 warnings. First failure: Error: /home/runner/work/android-remote-notify/android-remote-notify/app/src/main/AndroidManifest.xml:20: Error: This class should provide a default constructor (a public constructor with no arguments) (dev.hossain.remotenotify.MainActivity) [Instantiatable] android:name="dev.hossain.remotenotify.MainActivity" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. 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. If you use a custom AppComponentFactory to instantiate app components yourself, consider disabling this Lint issue in order to avoid false positives. The full lint text report is located at: /home/runner/work/android-remote-notify/android-remote-notify/app/build/intermediates/lint_intermediate_text_report/debug/lintReportDebug/lint-results-debug.txt ```
Code Coverage Report |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #337 +/- ##
=======================================
Coverage 35.50% 35.50%
=======================================
Files 79 79
Lines 1952 1952
Branches 154 154
=======================================
Hits 693 693
Misses 1232 1232
Partials 27 27 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
False positive.
https://github.com/hossain-khan/android-remote-notify/actions/runs/16417881446/job/46388249169
android {
lint {
baseline = file("lint-baseline.xml")
}
}