Skip to content

Fix CI build issues #446

@hossain-khan

Description

@hossain-khan

See https://github.com/hossain-khan/android-remote-notify/actions/runs/24936892643/job/73023889445

> Task :app:lintReportDebug
Wrote HTML report to file:///home/runner/work/android-remote-notify/android-remote-notify/app/build/reports/lint-results-debug.html
Lint found 5 errors, 10 warnings (and 1 error and 56 warnings filtered by baseline lint-baseline.xml)

35 errors/warnings were listed in the baseline file (/home/runner/work/android-remote-notify/android-remote-notify/app/lint-baseline.xml) but not found in the project; perhaps they have been fixed?
Lint found 5 errors and 10 warnings. First failure:
Error: /home/runner/work/android-remote-notify/android-remote-notify/app/src/main/java/dev/hossain/remotenotify/ui/alertchecklog/AlertCheckLogViewerScreen.kt:727: Error: Reading locale in a non-observable way in a composable function [NonObservableLocale from androidx.compose.ui]
                                        SimpleDateFormat("MMM dd", Locale.getDefault())
                                                                   ~~~~~~~~~~~~~~~~~~~


> Task :app:lintDebug FAILED
Lint found 5 errors, 10 warnings (and 1 error, 56 warnings filtered by baseline lint-baseline.xml). First failure:

Error: /home/runner/work/android-remote-notify/android-remote-notify/app/src/main/java/dev/hossain/remotenotify/ui/alertchecklog/AlertCheckLogViewerScreen.kt:727: Error: Reading locale in a non-observable way in a composable function [NonObservableLocale from androidx.compose.ui]
                                        SimpleDateFormat("MMM dd", Locale.getDefault())
                                                                   ~~~~~~~~~~~~~~~~~~~

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-1777139375707.json

33 actionable tasks: 33 executed
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 add the issues to the lint baseline via `gradlew updateLintBaseline`.
  For more details, see https://developer.android.com/studio/write/lint#snapshot
  
  Lint found 5 errors, 10 warnings (and 1 error, 56 warnings filtered by baseline lint-baseline.xml). First failure:
  
Error:   /home/runner/work/android-remote-notify/android-remote-notify/app/src/main/java/dev/hossain/remotenotify/ui/alertchecklog/AlertCheckLogViewerScreen.kt:727: Error: Reading locale in a non-observable way in a composable function [NonObservableLocale from androidx.compose.ui]
                                          SimpleDateFormat("MMM dd", Locale.getDefault())
                                                                     ~~~~~~~~~~~~~~~~~~~
  
  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

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org./

BUILD FAILED in 2m 45s
Configuration cache entry stored.
Error: Process completed with exit code 1.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions