【Android 踩过的坑】4.java.io.IOException: Cannot run program “/system/xbin/su“: error=2, No such file...
【Android 踩过的坑】4. java.io.IOException: Cannot run program “/system/xbin/su”: error=2, No such file or directory情况:Android 4.4系统正常跑,Android 8.0系统就报错了Process su = Runtime.getRuntime().exec("/system/xbin/su");解决方法:Process su = Runtime.getRuntime().exec("