Skip to content

Commit

Permalink
Fix path to keystore file (#19)
Browse files Browse the repository at this point in the history
> Task :app:optimizeReleaseResources
FAILURE: Build failed with an exception.

* What went wrong:
> Task :app:packageRelease FAILED
178 actionable tasks: 178 executed
Configuration cache entry stored.
A problem was found with the configuration of task ':app:packageRelease'
(type 'PackageApplication').
- Type 'com.android.build.gradle.tasks.PackageApplication' property
'signingConfigData$gradle_core.signingConfigData.storeFile' specifies
file '/home/runner/work/PixelPilot/PixelPilot/app/pixelpilot.jks' which
doesn't exist.

Reason: An input file was expected to be present but it doesn't
exist.

    Possible solutions:
      1. Make sure the file exists before the task is called.
2. Make sure that the task which produces the file is declared as
an input.

For more information, please refer to
https://docs.gradle.org/8.7/userguide/validation_problems.html#input_file_does_not_exist
in the Gradle documentation.

* 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.
  • Loading branch information
vertexodessa authored Nov 18, 2024
1 parent ba15d56 commit c5889d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ jobs:
- name: Build APK
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_PATH: ${{ github.workspace }}/pixelpilot.jks
run: |
./gradlew assembleRelease -Pandroid.injected.signing.store.file=pixelpilot.jks \
./gradlew assembleRelease -Pandroid.injected.signing.store.file=$KEYSTORE_PATH \
-Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD \
-Pandroid.injected.signing.key.alias=pixelpilot \
-Pandroid.injected.signing.key.password=$KEYSTORE_PASSWORD
Expand Down

0 comments on commit c5889d3

Please sign in to comment.