-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Firebase Core]: Android Build failing with latest Flutter SDK 3.24.3 and latest packages 3.4.1 #13334
Comments
If I simply downgrade the Flutter SDK then compile works beautifully. flutter --version |
You have to use "flutter build apk" to see this issue. |
I’m unable to reproduce the issue. Please share the Firebase dependencies and their versions that are causing the issue. |
Let me go back to latest SDK and then try to re-create using some minimal app to share. I was hoping the error message gives you an indication what could be wrong by looking at code. |
I tried building an apk with your specified flutter version and it worked fine on my end. |
Hi @dgurudot @SelaseKay , and there is firebase plugins version - Should i change the Android sdk version or what. FAILURE: Build failed with an exception.
|
@dgurudot @SelaseKay @daikini please help me to resolve this issue, Thank you in advance |
Is there an existing issue for this?
Which plugins are affected?
Core
Which platforms are affected?
Android
Description
During compile, I get the following errors and this is happening only after upgrade to latest SDK and latest flutter.
I did "flutter clean", "invalidated caches from Android Studio", looked at possible solutions but not able to resolve it.
/Users/vk/.pub-cache/hosted/pub.dev/cloud_firestore-5.4.1/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreRegistrar.java:19: error: cannot find symbol
LibraryVersionComponent.create(BuildConfig.LIBRARY_NAME, BuildConfig.LIBRARY_VERSION));
^
symbol: variable BuildConfig
location: class FlutterFirebaseFirestoreRegistrar
/Users/vk/.pub-cache/hosted/pub.dev/cloud_firestore-5.4.1/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreRegistrar.java:19: error: cannot find symbol
LibraryVersionComponent.create(BuildConfig.LIBRARY_NAME, BuildConfig.LIBRARY_VERSION));
^
symbol: variable BuildConfig
location: class FlutterFirebaseFirestoreRegistrar
2 errors
FAILURE: Build failed with an exception.
==========
Sharing Flutter info:
flutter --version
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (3 days ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3
Reproducing the issue
It's a compile of the simple app with the latest flutter SDK and Firebase libs.
Kindly respond if the error shared is not enough and I will try to create a minimal app and share it here.
Firebase Core version
^3.4.1
Flutter Version
3.24.3
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No Additional context
The text was updated successfully, but these errors were encountered: