天天看點

android studio安裝apk時,vivo 部分手機出現 解析軟體包錯誤

AndroidStudio運作apk時,vivo部分手機出現   解析軟體包錯誤  提示,安裝失敗;

解決方法:

Androidstudio  ——>  File   ——> Settings   ——>  Build,Execution,Deployment  ——>Instant Run  将标注的 Enable Instant....  取消選中 點選 apply   OK   就可以了

android studio安裝apk時,vivo 部分手機出現 解析軟體包錯誤

使用 Instant Run(即時運作)能做到一邊修改代碼,一邊在模拟器看到 修改代碼後的結果,但是又會引發很多問題,上邊就是出現的問題,下面附上幾個碰到的問題:

1.代碼已經修改了,點選運作的時候還提示  No changes To Deploy;

解決方法:  取消勾選 Enable Instant Run to hot swap code/resource changes on deploy (default enabled) 

2.Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’

解決方法:  取消勾選 Enable Instant Run to hot swap code/resource changes on deploy (default enabled) ,還報錯,就選擇  Bulid下的 clean project 

3. 使用了instant Run, 開啟應用就會短暫白屏,即使是打開全新的項目也會出現短暫的白屏

解決方法: 取消勾選 show Instant Run status notifications 

4. Instant Run 報錯  Error Run app ,因為在使用了Instant Run時,那麼adb也需要相應開啟快速部署

解決方法: 第一種:取消勾選 Enable Instant Run to hot swap code/resource changes on deploy (default enabled)

第二種:AndroidStudio ——> Tools ——> Android ——> Enable ADB Integration (預設是不勾選的,勾選上就可以了)

繼續閱讀