You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(android): use absolute keystore path for android.injected.signing.store.file (#19)
When sign=true, the build failed with:
Keystore file '/home/runner/.gradle/daemon/9.0.0/release.keystore' not
found
for signing config 'externalOverride'.
It seems like the action wrote only the filename (e.g. release.keystore)
to android.injected.signing.store.file. AGP treats it as a path and
resolves relative values from the Gradle daemon directory, so it looked
in the wrong place.
My Solution:
- Run "Create local gradle.properties" after "Decode and store keystore"
so KEYSTORE_TARGET_PATH (absolute path) is available.
- Set android.injected.signing.store.file=$KEYSTORE_TARGET_PATH instead
of the bare filename. AGP's externalOverride then finds the keystore.
ROCK_UPLOAD_* and other signing properties are unchanged.
Co-authored-by: Jano Detzel <jano.detzel@ewe-go.de>
0 commit comments