Hi,
I was trying to build a release apk for my flutter app and it failed. I do think the problem is cloud_firestore plugin. If it so then please tell how to solve this.
Command :-
flutter build apk --split-per-abi
Output :-Running "flutter pub get" in Jahdey-tech1-master... 0.9s
Running Gradle task 'assembleRelease'...
Note: /home/souvik/flutter/flutter/.pub-cache/hosted/
pub.dartlang.org/cloud_firestore-0.13.6/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
> Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/souvik/flutter-projects/Jahdey-tech1-master/build/app/intermediates/flutter/debug/libs.jar.
> Failed to transform '/home/souvik/flutter-projects/Jahdey-tech1-master/build/app/intermediates/flutter/debug/libs.jar' using Jetifier. Reason: FileNotFoundException, message: /home/souvik/flutter-projects/Jahdey-tech1-master/build/app/intermediates/flutter/debug/libs.jar (No such file or directory). (Run with --stacktrace for more details.)
Please file a bug at
http://issuetracker.google.com/issues/new?component=460323.
* 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 57s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 179.4s (!)
Gradle task assembleRelease failed with exit code 1
My pubspec.yaml file :-name: uberlike
description: A new Flutter application.
version: 1.0.0+1
environment:
++++sdk: ">=2.2.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
cloud_firestore: ^0.13.6
firebase_auth: ^0.16.0
firebase_core: ^0.4.4
geolocator: ^5.3.2+2
provider: 4.0.5
geolocation: ^1.1.2
geoflutterfire: 2.1.0
flutter_email_sender: ^3.0.1
file_picker: ^1.12.0
mpesa_flutter_plugin: ^1.0.0
dev_dependencies:
flutter_test:
sdk: flutter
Hope you guys can help me.