mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 18:25:45 +00:00
fix Gradle permission errors during build
Specifically: org.gradle.internal.service.ServiceCreationException: Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory(). Caused by: org.gradle.api.UncheckedIOException: Failed to create parent directory '/build/project/android/.gradle/5.6.4' when creating directory '/build/project/android/.gradle/5.6.4/fileHashes' Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5307fdfbce
commit
ae411a432f
@ -120,6 +120,9 @@ in stdenv.mkDerivation {
|
||||
${androidEnvShellHook}
|
||||
${concatStrings (catAttrs "shellHook" [ mavenAndNpmDeps.shell status-go.shell ])}
|
||||
|
||||
# fix permissions so gradle can create directories
|
||||
chmod -R +w $sourceRoot/android
|
||||
|
||||
pushd $sourceRoot/android
|
||||
${adhocEnvVars} ./gradlew -PversionCode=${assert build-number != ""; build-number} assemble${capitalizedBuildType} || exit
|
||||
popd > /dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user