BabyishTank
BabyishTank

Reputation: 1472

Azure Pipeline gradle build local.properties' could not be found

The file '/Users/runner/work/1/s/local.properties' could not be found

I am going through the azure pipeline for my Android project. But I am stuck on the gradle build stepenter image description here

line 31 say local.properties could not be found, which make sense because it is in gitignore. But then azure didn't give any instruction on what to do with this error.

As for the pipeline yaml, I am using the default template for android enter image description here

Upvotes: 3

Views: 2080

Answers (1)

yan zhang
yan zhang

Reputation: 21

I am facing the same issue now. And I resolved it by creating a local.properties.

- task: file-creator@6
inputs:
  filepath: '$(System.DefaultWorkingDirectory)/local.properties'
  filecontent: 
'sdk.dir=C:/Users/Administrator/AppData/Local/Android/Sdk'
  fileoverwrite: true

Upvotes: 2

Related Questions