Closed flodaniel closed 1 year ago
Hey, just faced the same issue today. Haven't run my build for a longer time. Any updates on how to resolve this? Much appreciated! @flodaniel
@edTheGuy00 is there any progress on this issue? thanks
Closed with #57
When using a CI/CD tool such as codemagic, the build is often split in a different way compared to when we do a classic
flutter build
. For the flutter pipeline in codemagic, the codemagic CLI first runs aflutter pub get
followed right away with a/Users/builder/programs/gradle-7.3.1/bin/gradle wrapper --gradle-version 6.9.1 --distribution-type all
.This causes the following issue:
I can reproduce it locally be running:
flutter clean
cd android
gradle wrapper --gradle-version 6.9.1 --distribution-type all
Triaging the error shows that the absence of the file
.flutter-plugins-dependencies
causes the issue. More specifially the following lines in theplugins --> android
array of the file:{ "name": "flutter_config", "path": "/Users/floriandaniel/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/", "dependencies": [] },
So another way to reproduce the error is the following way:
flutter build apk
.flutter-plugins-dependencies
gradle wrapper --gradle-version 6.9.1 --distribution-type all
again in theandroid
folderSadly I do not yet have a proper solution for this. I am wondering if i should just commit the
.flutter-plugin-dependencies
, but i am 1) not sure if this would resolve the issue as on codemagic it might not be read and 2) i am sure this would be a hacky workaround.Flutter: 2.8.1