Updated build.yml and build.gradle to fix some recent errors #74
Closed
withlimon wants to merge 0 commit into
Closed
Updated build.yml and build.gradle to fix some recent errors #74withlimon wants to merge 0 commit into
withlimon wants to merge 0 commit into
Conversation
withlimon
commented
Mar 26, 2026
withlimon
commented
Mar 26, 2026
| android { | ||
| namespace project.properties['app.application_id'] | ||
| compileSdk 34 | ||
|
|
Author
There was a problem hiding this comment.
Lint runs as part of the :app:lintDebug task, and it runs before preBuild finishes patching the files or in a separate task graph that doesn't trigger preBuild at the right time on the runner.
So,It must be fixed
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.
First of all,I am sorry to pull a request mistakenly which edited
gradle.properties.So, I closed that request.Then, I have deleted that forked repository and again forked the repository,so thatgradle.propertiesnot change.build.gradle
I have added this to
app/build.gradleinside the android { } block:android { lint { baseline = file("lint-baseline.xml") abortOnError false } // other configs }It will solve this below error in GitHub Action (It happens when
app.application_idis changed ingradle.properties):build.yml
I have also updated Github Workflow File
build.yml. I have updated java version to 17 and added this before gradle build command:- name: Build project run: | chmod +x ./gradlew ./gradlew updateLintBaseline ./gradlew buildSo Now
build.ymlis look like:I am ensuring that I have tested this and confirmed that no errors will happened due to this pull request.
Thanks.