Skip to content

Fix Gradle signing configuration syntax error in release workflow#5

Merged
xingguangcuican6666 merged 2 commits intomasterfrom
copilot/fix-release-workflow-error
Dec 9, 2025
Merged

Fix Gradle signing configuration syntax error in release workflow#5
xingguangcuican6666 merged 2 commits intomasterfrom
copilot/fix-release-workflow-error

Conversation

Copy link

Copilot AI commented Dec 9, 2025

Fixes the Gradle build failure in the release workflow caused by incorrect property assignment syntax in the signing configuration block.

Problem

The release workflow was failing with the error:

No signature of method: java.lang.String.call() is applicable for argument types: (String)

This occurred because the signing configuration properties in app/build.gradle were using implicit assignment syntax (e.g., storePassword keystorePassword), which Groovy incorrectly interpreted as method calls rather than property assignments.

Changes Made

Updated the signing configuration in app/build.gradle to use explicit assignment syntax with the = operator:

  • Changed storeFile file(keystoreProperties['storeFile']) to storeFile = file(keystoreProperties['storeFile'])
  • Changed storePassword keystoreProperties['storePassword'] to storePassword = keystoreProperties['storePassword']
  • Changed keyAlias keystoreProperties['keyAlias'] to keyAlias = keystoreProperties['keyAlias']
  • Changed keyPassword keystoreProperties['keyPassword'] to keyPassword = keystoreProperties['keyPassword']

These fixes were applied to both:

  1. The local keystore.properties file configuration (lines 24-27)
  2. The CI environment variables configuration (lines 41-44)

Testing

  • ✅ Successfully built debug APK locally to verify the fix
  • ✅ Code review completed
  • ✅ Security scan passed

The release workflow will now correctly build and sign release APKs when the required signing secrets are configured.

Original prompt

修复工作流release错误


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@xingguangcuican6666
Copy link

@copilot 修复工作流release错误,> No signature of method: java.lang.String.call() is applicable for argument types: (String) values: [***]
Possible solutions: wait(), chars(), any(), wait(long), split(java.lang.String), any(groovy.lang.Closure)

  • 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.
Get more help at https://help.gradle.org.
BUILD FAILED in 7s
Error: Process completed with exit code 1.

Co-authored-by: xingguangcuican6666 <119158495+xingguangcuican6666@users.noreply.github.com>
Copy link
Author

Copilot AI commented Dec 9, 2025

@copilot 修复工作流release错误,> No signature of method: java.lang.String.call() is applicable for argument types: (String) values: [***]
Possible solutions: wait(), chars(), any(), wait(lo...

Fixed the Groovy syntax error in app/build.gradle. The issue was that signing configuration properties were using implicit assignment syntax which Groovy was interpreting as method calls. Changed to explicit assignment using = operator. The fix is in commit 49b3011.

Copilot AI changed the title [WIP] Fix release workflow error Fix Gradle signing configuration syntax error in release workflow Dec 9, 2025
@xingguangcuican6666 xingguangcuican6666 marked this pull request as ready for review December 9, 2025 09:27
Copilot AI review requested due to automatic review settings December 9, 2025 09:27
@xingguangcuican6666 xingguangcuican6666 merged commit 02cb733 into master Dec 9, 2025
7 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical Gradle build failure in the release workflow caused by incorrect property assignment syntax in the signing configuration block. The syntax error was causing Groovy to interpret property assignments as method calls, leading to build failures.

Key Changes:

  • Updated signing configuration properties to use explicit assignment syntax (= operator) instead of implicit assignment
  • Applied fixes consistently to both local keystore.properties and CI environment variable configurations

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
app/build.gradle Fixed signing configuration syntax by adding explicit = operators to all property assignments in both local and CI signing config blocks
.gradle/buildOutputCleanup/cache.properties Gradle build cache timestamp update (should not be committed per .gitignore)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to 2
#Tue Dec 09 09:20:44 UTC 2025
gradle.version=8.9
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .gradle/ directory should not be committed to version control as specified in .gitignore. This file is a Gradle build cache artifact that changes with every build and should be excluded from the repository. Please remove this file from the PR.

Suggested change
#Tue Dec 09 09:20:44 UTC 2025
gradle.version=8.9

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants