Skip to content

[Question]: Build failed with an exception. #1710

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

Open
3 of 8 tasks
anandmampuzhakal opened this issue May 26, 2025 · 4 comments
Open
3 of 8 tasks

[Question]: Build failed with an exception. #1710

anandmampuzhakal opened this issue May 26, 2025 · 4 comments
Assignees

Comments

@anandmampuzhakal
Copy link

Please check the following before submitting a new issue.

Please select for which platform(s) you need help

  • Android
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

Your question

New changes start to break the project,

Where:
Build file '/Users/anandmjoseph/.pub-cache/hosted/pub.dev/geolocator_android-5.0.1+1/android/build.gradle' line: 29

  • What went wrong:
    A problem occurred evaluating project ':geolocator_android'.

Could not get unknown property 'flutter' for extension 'android' of type com.android.build.gradle.LibraryExtension.

  • 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.

BUILD FAILED in 2s
Error: Gradle task assembleDebug failed with exit code 1

Version

geolocator: ^14.0.1

@TimHoogstrate
Copy link
Contributor

Dear @anandmampuzhakal,

Thanks for your input. Can you add the output of flutter doctor -v to this issue?

Kind regards,

@TimHoogstrate TimHoogstrate self-assigned this May 28, 2025
@TimHoogstrate TimHoogstrate added the status: needs more info We need more information before we can continue work on this issue. label May 28, 2025
@ibrajix
Copy link

ibrajix commented May 28, 2025

experiencing same:

sdk: ^3.5.1
geolocator: ^14.0.1
geocoding: ^4.0.0

..../pub-cache/hosted/pub.dev/geolocator_android-5.0.1+1/android/build.gradle' line: 29

* What went wrong:
A problem occurred evaluating project ':geolocator_android'.
> Could not get unknown property 'flutter' for extension 'android' of type com.android.build.gradle.LibraryExtension.

* 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.

@github-actions github-actions bot removed the status: needs more info We need more information before we can continue work on this issue. label May 28, 2025
@ibrajix
Copy link

ibrajix commented May 29, 2025

fixed by updating flutter SDK to 3.32.0

@anandmampuzhakal
Copy link
Author

anandmampuzhakal commented May 29, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants