Basically I have this in my build.gradle:
Like this I can build an APK that can be installed on a device without any error but on Azure I have these lines commented.
In Azure Devops I don't use these values, this part is commented. But I need this part when I generate the APK otherwise it won't run on device.
Currently I use this pipeline to build & sign the apk:
- stage: Android
dependsOn: [ReleaseNotes]
jobs:
- job: AndroidJob
pool:
vmImage: 'ubuntu-latest'
displayName: Android
steps:
- task: FlutterInstall@0
displayName: "Install Flutter SDK"
inputs:
mode: 'auto'
channel: 'stable'
version: 'latest'
- task: FlutterBuild@0
displayName: 'Flutter Build App - Android'
inputs:
target: apk
iosCodesign: false
projectDirectory: $(projectDirectory)
- task: AndroidSigning@3
displayName: 'Signing and aligning APK file(s) **/*.apk'
inputs:
apkFiles: '**/*.apk'
apksign: true
apksignerKeystoreFile: upload-keystore.jks
apksignerKeystorePassword: $(upload-keystore-password)
apksignerKeystoreAlias: upload
apksignerKeyPassword: $(upload-keystore-password)
What could be the solution?
Thanks in advance.
