-
Notifications
You must be signed in to change notification settings - Fork 247
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels