天天看點

Android Studio安裝a

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?

點選确定 提示DELETE_FAILED_INTERNAL_ERROR,還是無法安裝,哪怕把手機上已經安裝了的解除安裝也沒用。

網上的方法也有一些,但是都沒什麼卵用,反複的build和clear中折騰,其實隻要懂原理輕松搞定。

它提示這個檔案有問題,ok找到這個目錄直接幹掉,然後運作一次就行了 由于分割的apk又很多個,是以建議直接把build目錄下的

app\build\intermediates檔案夾直接删除或者app\build\intermediates\split-apk

第二種方法是關閉即時運作,顯然這種方法我無法接受。。

如果是小米手機