-
-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: Profile Android build failing after geolocator_android 4.6.2 with Flutter 3.24.x #1666
Comments
same here |
same problem for me |
Hi! I'm also facing the same problem. How can we handle it? |
upgrade flutter version from 3.24.5 to latest one 3.29.2 and it kind of fixed this error. |
I upgrade my flutter yesterday to 3.29.2 because of the issue but still same thing |
I think the issue is related to geolocator_andriod which is upgraded 4days ago to 5.0.0 but geolocator is still using 4.. |
yes that is the main issue. the pubspec.lock file shows geolocator_android to 4.6.2. I faced this issue yesterday and after not finding any solutions, tried with flutter version upgrade and it got fixed. can you also confirm the project is pointing to 3.29.2 @horlas08 . |
Yeah that's true I didn't point my project to 3.29.2 I will do that and revert back here thanks |
It is true that Flutter SDK >3.27.x does not face this issue. This is because from 3.27. onwards, the flutter Gradle plugin allowed using all properties that are absent before and result in the here described error. So people using Flutter SDK >3.27.x should not face this. What I do not appreciate is upgrading the patch version of a plugin and not checking the compatibility towards older Flutter SDKs that are supported (in the pubspec.yaml file, currently 3.24.x is supported). This leads to a situation where dependency resolving goes without problem to 4.6.2, but in the release / profile build (debugging does not fail) fails. Which is annoying. There is no proper way for this package to work with Flutter SDK 3.24.x on Android anymore, even though it states so - which is sad. |
@chandMessi10 Thanks for your suggestion it works |
@chandMessi10 is not working this morning i think something is wrong same error i point my project to environment: |
@chandMessi10 what is ur dart sdk version |
sdk: ^3.7.2 |
what is the flutter version you have selected in Settings -> Framework -> Flutter ? |
@chandMessi10 am using andriod studio > language and frameworks > flutter is 3.29.2 while dart is 3.7.2 and in my gradle-wrapper distribution Url is gradle-8.5-bin.zip |
make the gradle version 8.7 or 8.10. mine is 8.10 |
@chandMessi10 ok let me try that now |
for me temporary solution update compileSdk flutter.compileSdkVersion to 35
|
Check your dart sdk path and version. and check Version: 3.7.2 |
@chandMessi10 i got it working since then after using 8.10 sorry for the late update |
I am still using Flutter 3.24.5. With I ran into this problem and solved by doing the following for now:
|
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
fvm use 3.24.5
fvm flutter create . --platforms=android
fvm flutter pub add geolocator
fvm flutter pub get
(geolocator_android 4.6.2. is pulled)fvm flutter build appbundle --profile --no-pub
Expected results
Build runs without exceptions and outputs the
.aab
file for all supported Flutter SDK versions.Actual results
Code sample
The minimum Flutter example created with
flutter create
will do.Version
13.0.3
Flutter Doctor output
Doctor Summary
The text was updated successfully, but these errors were encountered: