We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the following error when running the app, I follow all instructions for setup but I dont Know how fix this error for use your plugin,
The sdk verion compilation in android is using the following
minSdkVersion 16 targetSdkVersion 33
My pubspec.yaml is how following
name: backgroundlocator description: A new Flutter project. publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment: sdk: ">=2.8.0 <3.0.0"
dependencies: flutter: sdk: flutter
cupertino_icons: ^1.0.2 background_locator: git: url: https://github.com/caiobraga/background_locator path_provider: ^2.0.8 location_permissions: ^4.0.1
dev_dependencies: flutter_test: sdk: flutter
flutter_lints: ^2.0.0
flutter:
uses-material-design: true
This is the error in the console running the app, please helpme to fix this problem
V/PhoneWindow(16031): DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@c4911e0, this = DecorView@1cf0c99[MainActivity] D/BackgroundLocatorPlugin(16031): start locator with Google client I/libMEOW_gift(16031): ctx:0x720934f580, ARC not Enabled. I/libMEOW_gift(16031): ctx:0x71b2da9c00, ARC not Enabled. D/libMEOW (16031): applied 1 plugins for [net.virtualisimo.bglocator.backgroundlocator]: D/libMEOW (16031): plugin 1: [libMEOW_gift.so]: D/plugin (16031): sendLocationEvent {callback=1180787228220806168, location={altitude=442.3999938964844, heading=0.0, latitude=-17.7886108, accuracy=14.272, speed_accuracy=0.0, time=1.681225570566E12, is_mocked=false, speed=0.0, longitude=-63.1667681}} I/flutter (16031): ***********Init callback handler I/flutter (16031): 1 I/flutter (16031): 1 location in dart: LocationDto{latitude: -17.7886108, longitude: -63.1667681, accuracy: 14.272000312805176, altitude: 442.3999938964844, speed: 0.0, speedAccuracy: 0.0, heading: 0.0, time: 1681225570566.0, isMocked: false, provider: } E/flutter (16031): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument: is a regular instance: Instance of 'LocationDto' E/flutter (16031): #0 _SendPort._sendInternal (dart:isolate-patch/isolate_patch.dart:249:43) E/flutter (16031): #1 _SendPort.send (dart:isolate-patch/isolate_patch.dart:230:5) E/flutter (16031): #2 LocationServiceRepository.callback (package:backgroundlocator/location_service_repository.dart:58:11) E/flutter (16031): E/flutter (16031): #3 LocationCallbackHandler.callback (package:backgroundlocator/location_callback_handler.dart:23:5) E/flutter (16031): E/flutter (16031): D/plugin (16031): sendLocationEvent {callback=1180787228220806168, location={altitude=442.3999938964844, heading=173.87346, latitude=-17.7886381, accuracy=9.586, speed_accuracy=1.8, time=1.681225578308E12, is_mocked=false, speed=0.71520644, longitude=-63.166765}} I/flutter (16031): 1 location in dart: LocationDto{latitude: -17.7886381, longitude: -63.166765, accuracy: 9.586000442504883, altitude: 442.3999938964844, speed: 0.7152064442634583, speedAccuracy: 1.7999999523162842, heading: 173.8734588623047, time: 1681225578308.0, isMocked: false, provider: } E/flutter (16031): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument: is a regular instance: Instance of 'LocationDto' E/flutter (16031): #0 _SendPort._sendInternal (dart:isolate-patch/isolate_patch.dart:249:43) E/flutter (16031): #1 _SendPort.send (dart:isolate-patch/isolate_patch.dart:230:5) E/flutter (16031): #2 LocationServiceRepository.callback (package:backgroundlocator/location_service_repository.dart:58:11) E/flutter (16031): E/flutter (16031): #3 LocationCallbackHandler.callback (package:backgroundlocator/location_callback_handler.dart:23:5) E/flutter (16031): E/flutter (16031):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the following error when running the app, I follow all instructions for setup but I dont Know how fix this error for use your plugin,
The sdk verion compilation in android is using the following
minSdkVersion 16
targetSdkVersion 33
My pubspec.yaml is how following
name: backgroundlocator
description: A new Flutter project.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.8.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
background_locator:
git:
url: https://github.com/caiobraga/background_locator
path_provider: ^2.0.8
location_permissions: ^4.0.1
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
flutter:
uses-material-design: true
This is the error in the console running the app, please helpme to fix this problem
V/PhoneWindow(16031): DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@c4911e0, this = DecorView@1cf0c99[MainActivity]
D/BackgroundLocatorPlugin(16031): start locator with Google client
I/libMEOW_gift(16031): ctx:0x720934f580, ARC not Enabled.
I/libMEOW_gift(16031): ctx:0x71b2da9c00, ARC not Enabled.
D/libMEOW (16031): applied 1 plugins for [net.virtualisimo.bglocator.backgroundlocator]:
D/libMEOW (16031): plugin 1: [libMEOW_gift.so]:
D/plugin (16031): sendLocationEvent {callback=1180787228220806168, location={altitude=442.3999938964844, heading=0.0, latitude=-17.7886108, accuracy=14.272, speed_accuracy=0.0, time=1.681225570566E12, is_mocked=false, speed=0.0, longitude=-63.1667681}}
I/flutter (16031): ***********Init callback handler
I/flutter (16031): 1
I/flutter (16031): 1 location in dart: LocationDto{latitude: -17.7886108, longitude: -63.1667681, accuracy: 14.272000312805176, altitude: 442.3999938964844, speed: 0.0, speedAccuracy: 0.0, heading: 0.0, time: 1681225570566.0, isMocked: false, provider: }
E/flutter (16031): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument: is a regular instance: Instance of 'LocationDto'
E/flutter (16031): #0 _SendPort._sendInternal (dart:isolate-patch/isolate_patch.dart:249:43)
E/flutter (16031): #1 _SendPort.send (dart:isolate-patch/isolate_patch.dart:230:5)
E/flutter (16031): #2 LocationServiceRepository.callback (package:backgroundlocator/location_service_repository.dart:58:11)
E/flutter (16031):
E/flutter (16031): #3 LocationCallbackHandler.callback (package:backgroundlocator/location_callback_handler.dart:23:5)
E/flutter (16031):
E/flutter (16031):
D/plugin (16031): sendLocationEvent {callback=1180787228220806168, location={altitude=442.3999938964844, heading=173.87346, latitude=-17.7886381, accuracy=9.586, speed_accuracy=1.8, time=1.681225578308E12, is_mocked=false, speed=0.71520644, longitude=-63.166765}}
I/flutter (16031): 1 location in dart: LocationDto{latitude: -17.7886381, longitude: -63.166765, accuracy: 9.586000442504883, altitude: 442.3999938964844, speed: 0.7152064442634583, speedAccuracy: 1.7999999523162842, heading: 173.8734588623047, time: 1681225578308.0, isMocked: false, provider: }
E/flutter (16031): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument: is a regular instance: Instance of 'LocationDto'
E/flutter (16031): #0 _SendPort._sendInternal (dart:isolate-patch/isolate_patch.dart:249:43)
E/flutter (16031): #1 _SendPort.send (dart:isolate-patch/isolate_patch.dart:230:5)
E/flutter (16031): #2 LocationServiceRepository.callback (package:backgroundlocator/location_service_repository.dart:58:11)
E/flutter (16031):
E/flutter (16031): #3 LocationCallbackHandler.callback (package:backgroundlocator/location_callback_handler.dart:23:5)
E/flutter (16031):
E/flutter (16031):
The text was updated successfully, but these errors were encountered: