Skip to content
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

Location doesn't work on emulator #1010

Open
niamotullah opened this issue Dec 9, 2024 · 0 comments
Open

Location doesn't work on emulator #1010

niamotullah opened this issue Dec 9, 2024 · 0 comments

Comments

@niamotullah
Copy link

niamotullah commented Dec 9, 2024

Describe the bug
A clear and concise description of what the bug is. Have you tried running flutter clean first ?

  • Yes

Expected behavior
get the location

Tested on:

  • Android, API Level 34, simulator (not workign), real device (works)
emulator version: 35.2.10-12414864
35.4.3 (Dev update channel)

Other plugins:

name: favorite_places
description: "A new Flutter project."
publish_to: 'none'
version: 0.1.0

environment:
  sdk: ^3.5.4

dependencies:
  flutter:
    sdk: flutter
  device_preview: ^1.2.1
  google_fonts: ^6.2.1
  flutter_riverpod: ^2.6.1
  image_picker: ^1.1.2
  flutter_isolate: ^2.1.0
  path_provider: ^2.1.5
  location: ^7.0.1

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^4.0.0

flutter:
  uses-material-design: true

Additional logs


W/GoogleApiManager( 2710): The service for com.google.android.gms.internal.location.zzdz is not available: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}
E/flutter ( 2710): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(UNEXPECTED_ERROR, 17: API: LocationServices.API is not available on this device. Connection failed with: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}, null, null)
E/flutter ( 2710): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter ( 2710): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter ( 2710): <asynchronous suspension>
E/flutter ( 2710): #2      MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:534:43)
E/flutter ( 2710): <asynchronous suspension>
E/flutter ( 2710): #3      MethodChannelLocation.getLocation (package:location_platform_interface/src/method_channel_location.dart:83:9)
E/flutter ( 2710): <asynchronous suspension>
E/flutter ( 2710): #4      _LocationInputState._getCurrentLocation (package:favorite_places/widget/location_input.dart:43:21)
E/flutter ( 2710): <asynchronous suspension>
E/flutter ( 2710): 
D/EGL_emulation( 2710): app_time_stats: avg=14.13ms min=3.68ms max=67.21ms count=57
D/EGL_emulation( 2710): app_time_stats: avg=9.98ms min=5.84ms max=19.73ms count=60
D/EGL_emulation( 2710): app_time_stats: avg=8.72ms min=4.41ms max=16.00ms count=61
D/EGL_emulation( 2710): app_time_stats: avg=11.08ms min=2.76ms max=19.93ms count=61
D/EGL_emulation( 2710): app_time_stats: avg=10.50ms min=2.69ms max=17.87ms count=61
W/GooglePlayServicesUtil( 2710): com.example.favorite_places requires the Google Play Store, but it is missing.
W/GoogleApiManager( 2710): The service for com.google.android.gms.common.internal.service.zap is not available: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}
W/GooglePlayServicesUtil( 2710): com.example.favorite_places requires the Google Play Store, but it is missing.
W/GoogleApiManager( 2710): The service for com.google.android.gms.common.internal.service.zap is not available: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}
some logs
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

1 participant