DEV Community

Discussion on: Automate Flutter app delivery to AppCenter with GitHub Actions

Collapse
 
hendisantika profile image
Hendi Santika

0s
Run flutter build apk --release --verbose
flutter build apk --release --verbose
shell: /usr/bin/bash -e {0}
/home/runner/work/_temp/d4cdd1ed-ffe7-47a6-b800-64ead539ec17.sh: line 1: flutter: command not found
Error: Process completed with exit code 127.

Image description

Image description

Collapse
 
hendisantika profile image
Hendi Santika

Where should I input these variables?
command: 'appcenter distribute release -f ${{inputs.file}} --app ${{inputs.name}} --group ${{inputs.group}}'

If I am not mistaken it should input by us on github action right?

CMIIW

Collapse
 
alvbarros profile image
AlvBarros

Hey there!

On this example, it's currently on deploy_android.yml. If you want to take a look at the file completed on this guide, click here to go to the file on the GitHub repo.

If you're still having issues, you could share the project link with me!
If it's private, maybe just add my user and then I can take a look.

Best of luck!

Thread Thread
 
hendisantika profile image
Hendi Santika • Edited

Yes, I already checked you git repo.

But still error ...

github.com/KominfoPemudaPersis/Qur...

github.com/KominfoPemudaPersis/Qur...

Collapse
 
alvbarros profile image
AlvBarros

This log shows a specific error: flutter: command not found.
This probably means that Flutter was not correctly set up in the Runner.
It's supposed to be set up on the Setup Flutter step of the job, so maybe take a look at that log to make sure it ran without any issue?

Collapse
 
hendisantika profile image
Hendi Santika

/usr/local/bin/appcenter distribute release -f ./build/app/outputs/apk/release/app-release.apk --app QuranPersis --group Collaborators --token ***
Error: Command 'distribute release -f ./build/app/outputs/apk/release/app-release.apk --app QuranPersis --group Collaborators --token ***' failed with exception "'QuranPersis' is not a valid application id"
Error: The process '/usr/local/bin/appcenter' failed with exit code 3

Where Can I get the application ID?