Open nmanaranga opened 1 month ago
I am getting the same issue here. Error Stacktrace:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(IO_ERROR, java.util.concurrent.TimeoutException: Waited 5 seconds (plus 153458 nanoseconds delay) for hha@90eec20[status=PENDING, info=[tag=[ReverseGeocode]]], null, null)
< asynchronous suspension >
Description PlatformException(IO_ERROR, fail, null, null) when attempting to get placemarks from coordinates.
Affected Platforms Android iOS Steps to Reproduce Retrieve the current position:
dart:
Position position = await Geolocator.getCurrentPosition(); Use the position to get placemarks:
dart:
List
json:
{ "addressName": "dummy address", "streetName": "dummy Street" } Actual Results PlatformException(IO_ERROR, fail, null, null)
Code Sample
dart:
import 'package:geolocator/geolocator.dart'; import 'package:geocoding/geocoding.dart';
void getPositionAndAddress() async {
try {
Position position = await Geolocator.getCurrentPosition();
List
Version geocoding: 3.0.0
Flutter Doctor Output:
[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [Version 10.0.19045.4412], locale en-US) • Flutter version 3.22.0 on channel stable at D:\Omobio\HSADRP_\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5dcb86f68f (11 days ago), 2024-05-09 07:39:20 -0500 • Engine revision f6344b75dc • Dart version 3.4.0 • DevTools version 2.34.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\namal.l\AppData\Local\Android\Sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = C:\Users\namal.l\AppData\Local\Android\Sdk • ANDROID_SDK_ROOT = C:\Users\namal.l\AppData\Local\Android\Sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) • All Android licenses accepted.
[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps X Visual Studio not installed; this is necessary to develop Windows apps. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2020.3) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[√] VS Code, 64-bit edition (version 1.82.2) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 3.88.0
[√] Connected device (4 available) • JNY LX2 (mobile) • DKTUT20115000377 • android-arm64 • Android 10 (API 29) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.4412] • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.208 • Edge (web) • edge • web-javascript • Microsoft Edge 124.0.2478.97
[√] Network resources Additional Context Any additional information or context that might be helpful in diagnosing and fixing the issue.
This template includes all the necessary information to help the maintainers understand and address your issue.
same issue here , any solution yet ?
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
Position position = await Geolocator.getCurrentPosition(); List placemarks =await placemarkFromCoordinates(position.latitude, position.longitude);
Expected results
{addressName: dummy address , streetName: dummy Street }
Actual results
PlatformException(IO_ERROR, fail, null, null)
Code sample
Code sample
Position position = await Geolocator.getCurrentPosition(); ListScreenshots or video
Screenshots or video demonstration
[Upload media here]Version
geocoding 3.0.0
Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [Version 10.0.19045.4412], locale en-US) • Flutter version 3.22.0 on channel stable at D:\Omobio\HSADRP_\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5dcb86f68f (11 days ago), 2024-05-09 07:39:20 -0500 • Engine revision f6344b75dc • Dart version 3.4.0 • DevTools version 2.34.3 [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\namal.l\AppData\Local\Android\Sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = C:\Users\namal.l\AppData\Local\Android\Sdk • ANDROID_SDK_ROOT = C:\Users\namal.l\AppData\Local\Android\Sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [X] Visual Studio - develop Windows apps X Visual Studio not installed; this is necessary to develop Windows apps. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [√] Android Studio (version 2020.3) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) [√] VS Code, 64-bit edition (version 1.82.2) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 3.88.0 [√] Connected device (4 available) • JNY LX2 (mobile) • DKTUT20115000377 • android-arm64 • Android 10 (API 29) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.4412] • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.208 • Edge (web) • edge • web-javascript • Microsoft Edge 124.0.2478.97 [√] Network resources