For some reason, when I run the latest version locally using flutter run on the iOS simulator, it works fine. But running flutter build apk fails without a clear reason.
I hope somebody with more knowledge than me could pick this up!
> flutter build apk
💪 Building with sound null safety 💪
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkReleaseAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> /Users/wsloth/.gradle/caches/transforms-3/077a98aa3bc24bcff6f6f40c1062628b/transformed/jetified-window-java-1.0.0-beta04/META-INF/com/android/build/gradle/aar-metadata.properties (No such file or directory)
* 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 5s
Running Gradle task 'assembleRelease'... 7.0s
Gradle task assembleRelease failed with exit code 1
For some reason, when I run the latest version locally using
flutter run
on the iOS simulator, it works fine. But runningflutter build apk
fails without a clear reason.I hope somebody with more knowledge than me could pick this up!