Skip to content
New issue

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

DroneKit Crashes on Android 8+ #488

Closed
binloan opened this issue Oct 2, 2018 · 1 comment
Closed

DroneKit Crashes on Android 8+ #488

binloan opened this issue Oct 2, 2018 · 1 comment

Comments

@binloan
Copy link

binloan commented Oct 2, 2018

Following your example project once you call

this.controlTower.connect(listener:this);

The app crashes with the following message:

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.dronekit, PID: 8258
    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:1768)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Seems like you do not take care of the change behavior of startForeground in Android 8.

@binloan
Copy link
Author

binloan commented Oct 2, 2018

Duplicate of 482 closed.

@binloan binloan closed this as completed Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant