cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
550 stars 676 forks source link

carp_background_location: ^3.0.1 BackgroundLocatorPlugin #656

Open ir4ever opened 1 year ago

ir4ever commented 1 year ago

Boolean defined in io.flutter.plugin.common.PluginRegistry.NewIntentListener

Device / Emulator and OS

Lib version: ^3.0.1

Describe the bug

Launching lib\main_dev.dart on SM N9600 in debug mode... Running Gradle task 'assembleDebug'... e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (25, 1): Class 'BackgroundLocatorPlugin' is not abstract and does not implement abstract member public abstract fun onNewIntent(p0: Intent): Boolean defined in io.flutter.plugin.common.PluginRegistry.NewIntentListener e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (215, 43): Type mismatch: inferred type is Map<Any, Any>? but Map<Any, Any> was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (215, 48): Type mismatch: inferred type is Map<Any, Any>? but Map<Any, Any> was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (224, 43): Type mismatch: inferred type is Map<Any, Any>? but Map<Any, Any> was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (224, 48): Type mismatch: inferred type is Map<Any, Any>? but Map<Any, Any> was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (243, 43): Type mismatch: inferred type is Map<Any, Any>? but Map<Any, Any> was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (243, 48): Type mismatch: inferred type is Map<Any, Any>? but Map<Any, Any> was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (266, 5): 'onNewIntent' overrides nothing e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (275, 35): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\IsolateHolderExtension.kt: (42, 27): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\IsolateHolderService.kt: (269, 35): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\pluggables\DisposePluggable.kt: (17, 51): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected e: C:\Users\phael\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\pluggables\InitPluggable.kt: (22, 55): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected

FAILURE: Build failed with an exception.

BUILD FAILED in 53s Exception: Gradle task assembleDebug failed with exit code 1

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [versÆo 10.0.19045.2486], locale pt-BR) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [√] Android Studio (version 2021.3) [√] VS Code (version 1.74.2) [√] Connected device (3 available) [√] HTTP Host Availability

Additional info

version: 1.6.0+72

environment: sdk: ">=2.16.2 <3.0.0"

dependencies: flutter: sdk: flutter

cupertino_icons: ^1.0.5 flutter_plus: ^1.0.0 auto_size_text: ^3.0.0 mobx: ^2.1.3 flutter_mobx: ^2.0.6+5 get_it: ^7.2.0 get: ^4.6.5 dio: ^4.0.6 url_launcher: ^6.1.7 google_maps_flutter: ^2.2.3 firebase_messaging: ^14.2.1 firebase_core: ^2.4.1 wakelock: ^0.6.2 device_info_plus: ^8.0.0 package_info_plus: ^3.0.2 notification_permissions: ^0.6.1 flutter_ringtone_player: ^3.2.0 connectivity_plus: ^3.0.2 geolocator: ^9.0.2 image_picker: ^0.8.6 flutter_svg: ^1.1.6 app_settings: ^4.2.0 permission_handler: ^10.2.0 qr_flutter: ^4.0.0 flutter_masked_text2: ^0.9.1 vibration: ^1.7.6 flutter_phone_direct_caller: ^2.1.1 sentry_flutter: ^6.18.2 system_alert_window: ^1.2.1 overlay_support: ^2.1.0 flutter_local_notifications: ^13.0.0 font_awesome_flutter: ^10.3.0 carp_background_location: ^3.0.1 validadores: ^1.0.5 brasil_fields: ^1.9.0 firebase_core_platform_interface: ^4.5.2

dev_dependencies: mobx_codegen: ^2.1.1 build_runner: ^2.3.3

gordett commented 1 year ago

I have the same problem. Did you resolve this?

ir4ever commented 1 year ago

No, i change package. I using background_location now. https://github.com/Almoullim/background_location

gordett commented 1 year ago

No, i change package. I using background_location now. https://github.com/Almoullim/background_location

Thanks for your response