Augustine Ojeh
12/04/2024, 8:24 AMflutter build apk --release command:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_plugin_android_lifecycle:generateReleaseRFile'.
> A failure occurred while executing com.android.build.gradle.internal.res.GenerateLibraryRFileTask$GenerateLibRFileRunnable
> /Users/ojeh/.gradle/caches/transforms-3/67ffce706dbb6b4e33828fbc98ca3a25/transformed/androidx.fragment-r.txt
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
BUILD FAILED in 8m 16s
Running Gradle task 'assembleRelease'... 497.0s
Gradle task assembleRelease failed with exit code 1
I’m running the latest Flutter stable version (Flutter 3.24.5) revised 3 weeks ago.
I’m executing the build on Android Studio Ladybug (latest version), and the Gradle version in the gradle-wrapper.properties config is 8.1.1 (relevant code line below)
distributionUrl=https\:<//services.gradle.org/distributions/gradle-8.1.1-all.zip>
All other configs are pretty much according to the direction specified in the Flutter docs.
Any help at this point will be very much appreciated.
Thanks in advance…