Skip to content

Flutter geofencing package issue #52885

Closed

Description

@devUsama

On build Flutter geofencing package giving these errors related to GeofencingService and IsolateHolderService files of package

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (11, 31): Unresolved reference: JobIntentService

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (28, 46): Unresolved reference: JobIntentService

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (48, 59): Type inference failed. Expected type mismatch: inferred type is Class but Intent was expected

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (48, 65): Too many arguments for @JvmStatic public final fun enqueueWork(context: Context, work: Intent): Unit defined in io.flutter.plugins.geofencing.GeofencingService.Companion

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (48, 73): Too many arguments for @JvmStatic public final fun enqueueWork(context: Context, work: Intent): Unit defined in io.flutter.plugins.geofencing.GeofencingService.Companion

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (113, 5): 'onCreate' overrides nothing

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (114, 15): Unresolved reference: onCreate

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (115, 32): Type mismatch: inferred type is GeofencingService but Context was expected

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt: (118, 5): 'onHandleWork' overrides nothing

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/IsolateHolderService.kt: (14, 31): Unresolved reference: NotificationCompat

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/IsolateHolderService.kt: (48, 28): Unresolved reference: NotificationCompat

flutter/.pub-cache/hosted/pub.dartlang.org/geofencing-0.0.1/android/src/main/kotlin/io/flutter/plugins/geofencing/IsolateHolderService.kt: (52, 30): Unresolved reference: NotificationCompat

Activity

  1. devUsama commented on Mar 19, 2020

    @devUsama
    Author

    flutter doctor -v result
    Screenshot 2020-03-19 at 6 37 47 PM

  2. VladyslavBondarenko commented on Mar 19, 2020

    @VladyslavBondarenko

    Hi @devUsama
    Consider to contact the plugin's author,
    Note that geofencing hasn't update already for 10 months
    Closing, as it seems to be an issue with the 3rd party plugin,
    if you disagree and believe it's an issue with Flutter itself, please write in the comments and I will reopen it
    Thank you

  3. lock commented on Apr 2, 2020

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked and limited conversation to collaborators on Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions