天天看點

我的Android進階之旅------>解決Android Studio編譯後安裝apk報錯:The APK file does not exist on disk1、錯誤描述2、解決方法

今天用Android Studio編譯應用後安裝APK的時候,報錯了,錯誤如下所示:

如下圖所示

我的Android進階之旅------>解決Android Studio編譯後安裝apk報錯:The APK file does not exist on disk1、錯誤描述2、解決方法

1、嘗試了Build -> Clean Project再編譯,還是無效

2、嘗試重新開機Android Studio無效

然後我去打開build\outputs\apk\目錄,發現裡面編譯好了APK檔案,不過檔案名确實:

OYP_2.3.4_I2Base_6478_official_debug.apk

如下圖所示:

我的Android進階之旅------>解決Android Studio編譯後安裝apk報錯:The APK file does not exist on disk1、錯誤描述2、解決方法

是以原因就是,Android Studio編譯好之後的APK檔案是

而它要安裝APK檔案名确實

OYP_2.3.4_I2Base_6476_official_debug.apk

<a href="http://stackoverflow.com/questions/34039834/the-apk-file-does-not-exist-on-disk">http://stackoverflow.com/questions/34039834/the-apk-file-does-not-exist-on-disk</a>

解決方法:

我的Android進階之旅------&amp;gt;解決Android Studio編譯後安裝apk報錯:The APK file does not exist on disk1、錯誤描述2、解決方法
我的Android進階之旅------&amp;gt;解決Android Studio編譯後安裝apk報錯:The APK file does not exist on disk1、錯誤描述2、解決方法
作者:歐陽鵬 歡迎轉載,與人分享是進步的源泉!
我的Android進階之旅------&amp;gt;解決Android Studio編譯後安裝apk報錯:The APK file does not exist on disk1、錯誤描述2、解決方法

繼續閱讀