-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Has your issue been reported?
- I have searched the existing issues and confirm it has not been reported.
- I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.
Current Behavior
When I try to download the apk of my project I get an error related to the image_downloader package
Expected Behavior
It should download the apk with the function to download on device images with image_downloader package
Steps to Reproduce
- Crate a project
- Create a custom action
- Import package image_downloader: ^0.31.0
- Download apk
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
IT40z/Hq4c9grt9G+KrUbfpVqDw5Jlg/bYEzlu1raCsofePrOpkAf8/7UFtUcMildFFUfE38sH8X/MrpkfH1LfECYEuVc75T/qhITjrjfz6iM4yKDpS3b3FSGcdYCh2/yMKviB1DKrNYc3hh2mCQe97KHy3vN4DzPjIRQeaoXdeK2SrDX1iXc2URm05KZDPz
Context
I am trying to add a function to download images on device
Visual documentation
Error: Command failed: flutter build apk --no-pub --no-version-check
Note: /opt/.pub-cache/hosted/pub.dev/cloud_firestore-4.8.0/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /opt/.pub-cache/hosted/pub.dev/cloud_firestore-4.8.0/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /opt/.pub-cache/hosted/pub.dev/firebase_messaging-14.6.2/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /opt/.pub-cache/hosted/pub.dev/purchases_flutter-4.10.2/android/src/main/java/com/revenuecat/purchases_flutter/PurchasesFlutterPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: /opt/.pub-cache/hosted/pub.dev/image_downloader-0.31.0/android/src/main/kotlin/com/ko2ic/imagedownloader/ImageDownloaderPlugin.kt: (332, 17): 'when' expression must be exhaustive, add necessary 'is Pending', 'is Successful' branches or 'else' branch instead
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':image_downloader:compileReleaseKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details
- 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 2m
Gradle task assembleRelease failed with exit code 1
Additional Info
Looking on Stuck Overflow I found that many had this problem in flutter and they managed to solve it updating the kotlin version to the last one. I tried with the last three version of kotlin but I get the same results.
I tried to deploy to the stores and on the apple store it published and I tested it on testFlight and it works.
The play store deploy gives the same error as the apk build.
Environment
- FlutterFlow version: V.1.1.88
- Platform: Web, MacOS
- Browser name and version:
- Operating system and version affected: