Dammyololade / flutter_polyline_points

A flutter plugin that's decodes encoded google poly line string into list of geo-coordinates suitable for showing route/polyline on maps
MIT License
105 stars 130 forks source link

Error when running example #96

Closed naneps closed 2 months ago

naneps commented 6 months ago

i have error like this

D/HostConnection( 8915): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 
D/EGL_emulation( 8915): eglCreateContext: 0x7e7617806a10: maj 1 min 0 rcv 1
I/bf      ( 8915): Successfully registered with Phenotype.
D/EGL_emulation( 8915): eglMakeCurrent: 0x7e7617806a10: ver 1 0 (tinfo 0x7e7837a4e280) (first time)
I/Choreographer( 8915): Skipped 37 frames!  The application may be doing too much work on its main thread.
D/EGL_emulation( 8915): eglMakeCurrent: 0x7e7617806a10: ver 1 0 (tinfo 0x7e7837a4e280) (first time)
D/ProfileInstaller( 8915): Installing profile for com.example.tracing_trash
W/DynamiteModule( 8915): Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule( 8915): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:6
I/DynamiteModule( 8915): Selected remote version of com.google.android.gms.googlecertificates, version >= 6
2
W/ziparchive( 8915): Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/00000005/GoogleCertificates.dm': No such file or directory
W/ProtoDataStoreFlagStore( 8915): Unable to retrieve flag snapshot for com.google.android.libraries.consentverifier#com.example.tracing_trash, using defaults.
naneps commented 6 months ago
2
I/Counters( 9903): exceeded sample count in FrameTime
E/flutter ( 9903): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Unable to get route: Response ---> REQUEST_DENIED 
E/flutter ( 9903): #0      NetworkUtil.getRouteBetweenCoordinates (package:flutter_polyline_points/src/network_util.dart:39:9)
E/flutter ( 9903): <asynchronous suspension>
E/flutter ( 9903): #1      PolylinePoints.getRouteBetweenCoordinates (package:flutter_polyline_points/flutter_polyline_points.dart:32:20)
E/flutter ( 9903): <asynchronous suspension>
E/flutter ( 9903): #2      _MapScreenState._getPolyline (package:tracing_trash/main.dart:120:29)
E/flutter ( 9903): <asynchronous suspension>
E/flutter ( 9903): 
Dammyololade commented 2 months ago

@naneps Have you enabled the directions api on the keys provided?