因爲自己的調試機是安卓5.0的,可以直接通過USB直接進行調試;但是後來部署應用到安卓6.0的系統上去出現了無法安裝的錯誤;
具體提示錯誤信息爲:Installation failed with message INSTALL_CANCELED_BY_USER.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
後來查了,因爲Android 6.0後手機權限的使用有很大的改變;有些權限的使用與以前完全不一樣(以往權限的使用,只是需要在配置文件當中申請使用就好了)
出現這個問題的解決方法: http://blog.csdn.net/cswoniu111/article/details/52997911
使用的調試機是 小米4 Android 6.0.1