How to correctly root Android 6 by one an application

Wait 5 sec.

As trying to root Android 6 by one of its applications, Kingo root (version 4.8) After it's been installed it's launched then every time it got 90% it told it's failed;Error code: 0x1B5F2CThen once there's Google and/or Android system interjection, popping up sort of:Your device at riskThis application is harmful.....How to pass it to easily root the Android 6 OS Useful guide is appreciated as invaluable.