Open Dooks123 opened 3 years ago
@hanabi1224 Is it totally necessary to use Gradle plugin 4.0.0+
or can it still work with 3.6.4
(without the isDefault
)?
Sorry but I have to say it's out of scope to test and ensure appcenter cloud build success since flutter is involving fast and also AFAIK cloud build for flutter is not even official supported. Any working solutions are 'hacky workaround', and tend to be broken as flutter involves.
So the best I can say for now is good luck but contributions are always welcome.
@hanabi1224 Currently the best way to build the app is via Azure Devops Build Pipelines
and distribute it to AppCenter (Works excellent for both Android and iOS builds).
Unless someone can find a way to remove the clean
argument within gradlew like I posted here (but it is hacky as you say)
Hi, I have an issue where I can't get the flutter app to build with
flutter_appcenter_bundle-3.3.1+2
on https://appcenter.msWhen testing locally with Gradle Plugin < 4.0.0 I get an error with
isDefault
:Excerpt from flutter_appcenter_bundle-3.3.1+2\android\build.gradle
However without the library, it builds on Gradle Plugin
3.5.0
and3.6.4
and builds successfully on https://appcenter.msWhen changing to
Gradle plugin 4.0.0
that error disappears locally and the build succeedsBUT...
on https://appcenter.ms I get the following error:
FAILURE: Build failed with an exception.
Now all of a sudden on https://appcenter.ms,
Gradle Plugin 4+
wants to have.../intermediates/flutter/appCenterDebug/libs.jar'
available to be able to build successfully.But it will never work, because right after the flutter script ran (copy of the script here: sample-build-scripts/flutter/android-build/appcenter-post-clone.sh) it runs the normal gradlew again:
Notice the
clean
in the command, it deletes theintermediates
folder and only builds:app:assembleAppCenterRelease :app:lintAppCenterRelease
So it doesn't matter if I build
--debug
and--release
in the flutter script, it will still clear that folder and break like this.So how do I get https://appcenter.ms to build the flutter app with this library included?
I have had no luck at this at all and been sitting with this for days now. I have asked on StackOverflow as well:
https://stackoverflow.com/questions/67278979/flutter-appcenter-flavor-build-issue
any help would be appreciated.