2016-11-15遇到的一點小問題
今天用小米手機debug運行,無法安裝,提示如下
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.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
INSTALL_CANCELED_BY_USER
很坑并鸵,重啟卸載舊版都沒有赘阀。后來網(wǎng)上一找完箩,有人也出現(xiàn)過哈忌怎,早知道先搜索了幔荒。
這邊寫得很詳細,我的手機確實剛升級MIUI版本罗岖,不過這邊寫的也不全對彼城,我的開發(fā)者模式和USB調(diào)試都有開著诅蝶,還是不行。再試下募壕,原來只需要關(guān)掉重新打開開發(fā)者模式就行调炬。
記錄一下。
2017-03-08遇到的一點小問題
這次把MIUI升到8了舱馅,順便將手機重啟到恢復(fù)模式(Recovery)清除數(shù)據(jù)缰泡,不過運行又出了點問題,安裝失敗代嗤,提示:
Installation failed with message Failed to establish session.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
MIUI8無法調(diào)試
網(wǎng)上搜了下匀谣,原來是MIUI默認在開發(fā)者選項最底部開啟了啟用MIUI優(yōu)化照棋,點擊關(guān)閉,重啟手機就可以了武翎。更新記錄下。
啟用MIUI優(yōu)化
2017-03-10遇到的一點小問題
模擬器運行失敗
需要測一下Android4.1的溶锭,不過手機被刷到4.4宝恶,只好用模擬器了。不過因為第三方so文件趴捅。所以提示:
Installation failed with message INSTALL_FAILED_CPU_ABI_INCOMPATIBLE.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
INSTALL_FAILED_CPU_ABI_INCOMPATIBLE
老問題了垫毙,找一下以前下載的ARM_Translation_Marshmallow.zip文件,拖拽過去安裝試一下拱绑,卻提示安裝失敗综芥。以為是版本過低,又網(wǎng)上找了個新版本的猎拨,當(dāng)然膀藐,我也不確定是不是新版的。還是提示安裝失敗红省。
安裝失敗
再找找是不是別的原因额各,然后有看到不能放在中文路徑里。換個目錄存放,再拖拽過去,可以了,成功安裝吧恃。
安裝成功
2017-03-13遇到的一點小問題
一個該淘汰的聯(lián)想測試機虾啦,將系統(tǒng)從4.1刷到4.4,運行時提示的,
Installation failed with message INSTALL_FAILED_INSUFFICIENT_STORAGE.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
INSTALL_FAILED_INSUFFICIENT_STORAGE
好像真是網(wǎng)上說的那樣痕寓,存儲空間不足傲醉,無法安裝。還好,卸載掉幾個就能運行呻率。
2017-05-02 遇到的一點小問題
今天米2S又出現(xiàn)第一個問題硬毕,換別的手機則出現(xiàn):
Installation failed with message INSTALL_FAILED_INVALID_APK.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
INSTALL_FAILED_INVALID_APK
一直運行不了,網(wǎng)上找了半天也解決不了筷凤。正準備放棄昭殉,突然發(fā)現(xiàn)app的build.gradle里不知道什么時候,不小心把applicationId改成p藐守∨捕哭。卢厂。乾蓬。折騰大半天。慎恒。任内。
還好撵渡,改回去就正常了。