Hi guys. New here. And great to be here. I’ve bee...
# flutter
a
Hi guys. New here. And great to be here. I’ve been building my first Flutter app for the past month. Now, I’m trying to build an apk release for internal testing. I’ve been tinkering on it for the past 3 days and for lack of better words, it’s been a heap of frustration. I’ve read every article and documentation I could lay my hands. To be frank, the readings were very helpful and I did make good progress. However, I’ve hit a snag and can’t seem to find a way around it. So, any help I can get will be appreciated. Happy to read some more, just point me to the documentation or something. Long story short, here’s the problem/error that I’m getting from my
flutter build apk --release
command:
Copy code
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…