Skip to content

firebase-core build failure  #4470

@rehamalraee

Description

@rehamalraee

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

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.startup:startup-runtime:1.0.0"
implementation 'com.google.firebase:firebase-messaging:20.2.4'
implementation 'com.google.firebase:firebase-analytics:17.5.0'
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'com.google.android.exoplayer:exoplayer:2.11.7'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
implementation 'androidx.core:core:1.5.0-alpha04'
implementation 'com.android.support:multidex:1.0.3'
implementation 'jp.wasabeef:glide-transformations:4.0.0'
implementation platform('com.google.firebase:firebase-bom:25.12.0')
implementation 'com.google.android.gms:play-services-basement:17.4.0'
implementation 'io.reactivex.rxjava2:rxkotlin:2.2.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation "androidx.appcompat:appcompat:$supportlibVersion"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "com.google.android.material:material:1.2.1"
implementation 'com.github.judemanutd:autostarter:1.0.8'
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'androidx.annotation:annotation:1.1.0'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions