Closed rehamalraee closed 3 years ago
Hi @rehamalraee
Can you please provide your flutter run --verbose
and a complete reproducible minimal code sample without using third-party packages
Thank you
@TahaTesser hello, I faced these exceptions on flutter build apk not when I use the packages itselfs
flutter run --verbose
Hi @rehamalraee If it build APK issue, Can you please provide your flutter build apk --verbose and a complete reproducible minimal code sample without using third-party packages Thank you
@TahaTesser hello, how can I provide a sample code? I only configured it and received the notification from an API that I don't work on, can I provide the setups instead? @TahaTesser and please take a look over the exception that appears at the end of the build I think it's related to the plugin itself $ flutter build apk --verbose
Hi @rehamalraee
Seem to be an in your dependencies, you no longer need to add implementation 'com.google.firebase:firebase-core:16.0.1'
in your build.gradle
Check out this for more details
@TahaTesser I removed it before, but the issue still appears
I have got the same error response recently. Is the issue got solved?
I found the cause of my issue. I used additional java files that had dependencies conflict. Check if you have such and fix the issues.
@Dharaneshvar Unfortunately, Not yet
@Dharaneshvar how can I discover dependencies conflict?__
If using additional java files for native android implementation remove those and check if it's causing the issue. Otherwise, check the firebase dependencies you are using, maybe some of them are not needed.
@Dharaneshvar I tried these both now, they are not working for me :(
Hi @rehamalraee @Dharaneshvar
I can reproduce the issue in a new project using firebase_core: ^0.5.3
@TahaTesser Any Updates ?
Update: the issue closed since it solved using the new dev version of FCM
Creating a flutter build fails with these exceptions
Click To Expand
``` 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':generateReleaseRFile'. > Could not resolve all files for configuration ':releaseRuntimeClasspath'. > Could not find com.google.firebase:firebase-bom:25.12.0. Searched in the following locations: - https://storage.googleapis.com/download.flutter.io/com/google/firebase/firebase-bom/25.12.0/firebase-bom-25.12.0.pom - https://storage.googleapis.com/download.flutter.io/com/google/firebase/firebase-bom/25.12.0/firebase-bom-25.12.0.jar Required by: project : > Could not find com.google.firebase:firebase-core:. Required by: project : > Could not find androidx.annotation:annotation:1.1.0. Searched in the following locations: - https://storage.googleapis.com/download.flutter.io/androidx/annotation/annotation/1.1.0/annotation-1.1.0.pom - https://storage.googleapis.com/download.flutter.io/androidx/annotation/annotation/1.1.0/annotation-1.1.0.jar Required by: project : * 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':javaPreCompileRelease'. > Could not resolve all files for configuration ':releaseCompileClasspath'. > Could not find com.google.firebase:firebase-bom:25.12.0. Required by: project : > Could not find com.google.firebase:firebase-core:. Required by: project : > Could not find androidx.annotation:annotation:1.1.0. Required by: project : * Try: ```Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` $ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [β] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19041.685], locale en-US) [β] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [!] Android Studio (version 4.1.0) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [β] Connected device (2 available) ! Doctor found issues in 1 category. ```Flutter dependencies
cupertino_icons: ^1.0.0 path_provider: ^1.6.14 android_alarm_manager: ^0.4.5+17 url_launcher: ^5.7.2 fluttercontactpicker: ^3.1.0 image_picker: ^0.6.1+4 http_parser: ^3.1.4 intl: ^0.15.8 firebase_messaging: ^7.0.3 flutter_phone_direct_caller: ^1.0.1 call_log: ^2.1.0 shared_preferences: ^0.5.7 country_code_picker: ^1.5.0 intl_phone_number_input: ^0.5.2+2 loader_overlay: ^1.1.1 libphonenumber: ^1.0.1 flutter_spinkit: "^4.1.2" sim_info: ^0.1.1 cached_network_image: ^2.4.1 numeric_keyboard: ^1.0.0 video_thumbnail: ^0.2.2 carousel_slider: ^2.3.1 video_player: ^1.0.0 thumbnails: ^1.0.1 unicorndial: ^1.1.5 contacts_service: ^0.4.6 delayed_display: ^1.0.3 convex_bottom_bar: ^2.6.0 http: ^0.12.0 screen: ^0.0.5 # keeping screen on splashscreen: ^1.3.3 dio: any flutter_downloader: ^1.5.1 permission_handler: ^5.0.1+1 firebase_core: ^0.5.2+1 flutter_phoenix: ^0.1.0