Skip to content

DroneKit 3.0.+ crashing on attemped connection to tower #482

Description

@mittsq

I'm trying to implement a drone app on Android but am running into this frustrating error. Whenever I try to connect to a tower (that is, call tower.connect(this)) my app immediately crashes. When I comment this line, the app runs fine but, of course, won't connect to a drone.

Currently, I'm using Dronekit 3.0.+. Downgrading to 2.9.+ works. Is that my only option? It seems like 3DR is deprecated ...

Here is the error; I can always provide more if needed:

android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=-2 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1784)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6520)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:442)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Activity

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